| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- namespace Abp.Application.Services.Dto
- {
- /// <summary>
- /// This DTO can be used as a simple item for a combobox/list.
- /// </summary>
- [Serializable]
- public class ComboboxItemDto
- {
- /// <summary>
- /// Value of the item.
- /// </summary>
- public string Value { get; set; }
- /// <summary>
- /// Display text of the item.
- /// </summary>
- public string DisplayText { get; set; }
- /// <summary>
- /// Is selected?
- /// </summary>
- public bool IsSelected { get; set; }
- /// <summary>
- /// Creates a new <see cref="ComboboxItemDto"/>.
- /// </summary>
- public ComboboxItemDto()
- {
- }
- /// <summary>
- /// Creates a new <see cref="ComboboxItemDto"/>.
- /// </summary>
- /// <param name="value">Value of the item</param>
- /// <param name="displayText">Display text of the item</param>
- public ComboboxItemDto(string value, string displayText)
- {
- Value = value;
- DisplayText = displayText;
- }
- }
- }
|