Ejemplo n.º 1
0
 public PluginPropertyViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
     Value = GetPropertyValueViewModel();
 }
Ejemplo n.º 2
0
 protected ValueViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
 }
Ejemplo n.º 3
0
 public ChoicesPropertyViewModel(PluginProperty pluginProperty)
     : base(pluginProperty)
 {
     Choices = pluginProperty.ConcreteChoices;
     SelectedChoice = pluginProperty.SelectedChoice;
 }
Ejemplo n.º 4
0
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return !defaultCheck && pluginProperty.ConcreteChoices.Any();
 }
Ejemplo n.º 5
0
 public BoolPropertyViewModel(PluginProperty pluginProperty) : base(pluginProperty)
 {
 }
Ejemplo n.º 6
0
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return !defaultCheck && pluginProperty.DefaultValue is bool;
 }
Ejemplo n.º 7
0
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return defaultCheck;
 }
Ejemplo n.º 8
0
 public TextPropertyViewModel(PluginProperty pluginProperty)
     : base(pluginProperty)
 {
     Text = pluginProperty.Value.ToString();
 }
Ejemplo n.º 9
0
 public ValueViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
 }