public PluginPropertyViewModel(PluginProperty pluginProperty) { this.pluginProperty = pluginProperty; Value = GetPropertyValueViewModel(); }
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(); }
public ValueViewModel(PluginProperty pluginProperty) { this.pluginProperty = pluginProperty; }