Пример #1
0
 /// <summary>
 /// Initializes a new instance of the SelectionResult class.
 /// </summary>
 /// <param name="value">The value input.</param>
 /// <param name="index">The index of item displayed.</param>
 /// <param name="data">The item data.</param>
 /// <param name="title">The title displayed in item.</param>
 /// <param name="type">The input type.</param>
 public SelectionResult(string value, int index, T data, string title, SelectionResultTypes type = SelectionResultTypes.Selected)
 {
     Value     = value;
     Index     = index;
     Data      = data;
     Title     = title;
     InputType = type;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the SelectionResult class.
 /// </summary>
 /// <param name="value">The value input.</param>
 /// <param name="type">The input type.</param>
 public SelectionResult(string value, SelectionResultTypes type)
 {
     Value     = value;
     Index     = -1;
     Data      = default;
     InputType = type;
     if (type == SelectionResultTypes.NotSupported)
     {
         IsNotSupported = true;
     }
 }