public PluginPropertyViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
     Value = GetPropertyValueViewModel();
 }
Beispiel #2
0
 protected ValueViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
 }
 public ChoicesPropertyViewModel(PluginProperty pluginProperty)
     : base(pluginProperty)
 {
     Choices = pluginProperty.ConcreteChoices;
     SelectedChoice = pluginProperty.SelectedChoice;
 }
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return !defaultCheck && pluginProperty.ConcreteChoices.Any();
 }
 public BoolPropertyViewModel(PluginProperty pluginProperty) : base(pluginProperty)
 {
 }
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return !defaultCheck && pluginProperty.DefaultValue is bool;
 }
 public static bool CanEdit(PluginProperty pluginProperty, bool defaultCheck)
 {
     return defaultCheck;
 }
 public TextPropertyViewModel(PluginProperty pluginProperty)
     : base(pluginProperty)
 {
     Text = pluginProperty.Value.ToString();
 }
Beispiel #9
0
 public ValueViewModel(PluginProperty pluginProperty)
 {
     this.pluginProperty = pluginProperty;
 }