public PowerStatusConfiguration(PowerStatusChoice chosenstatus, BatteryChargeStatus chosenBCS, int percentage) { ChosenStatus = chosenstatus; Percentage = percentage; ChosenBCS = chosenBCS; InitializeComponent(); }
public void OnSaved(WpfConfiguration configurationControl) { var config = (PowerStatusConfiguration)configurationControl; chosenStatus = config.ChosenStatus; chosenBCS = config.ChosenBCS; percentage = config.Percentage; }
protected override void OnLoadDefaults() { chosenStatus = PowerStatusChoice.PowerState; chosenBCS = BatteryChargeStatus.Charging; percentage = 30; }