예제 #1
0
 public static Caption <T> WithComboBox <T>(this Caption <T> model, IParent parent,
                                            List <ComboBoxItem <T> > values, string caption, string label,
                                            InputBox <T> .TryParse tryParse, ComboBoxItem <T> value) where T : struct
 {
     model.Input = new ComboBoxViewModel <T>(parent ?? model.Parent, values, caption, label, tryParse, value);
     return(model);
 }
예제 #2
0
 public static Caption <T> WithTextBox <T>(this Caption <T> model, IParent parent, string caption, string label,
                                           InputBox <T> .TryParse tryParse, T value)
     where T : struct
 {
     model.Input = new TextBoxViewModel <T>(parent, caption ?? model.Name, label, tryParse, value);
     return(model);
 }