public ConfigurationEntryBaseVM([NotNull] IConfigurationPlayer realPlayer) { Assert.ArgumentNotNull(realPlayer, "realPlayer"); this.RealPlayer = realPlayer; this.RestoreDefaultValue = new RelayCommand(this.ResetValue, this.RealPlayer.SupportsReset); this.RestoreDefaultValueTooltip = "Reset to default"; this.RealPlayer.ValueChanged += this.OnUnderlyingSettingValueChanged; this.RealPlayer.RequiresApplicationRebootChanged += this.RealPlayer_RequiresApplicationRebootChanged; }
protected virtual void FillPlayerWithConfigAction(IConfigurationPlayer realPlayer) { realPlayer.AdditionalActions.Add(this.GetConfigurationAction()); }