Example #1
0
        private void InitiallizeCollections()
        {
            var schemes = PowerManagement.GetPowerSchemes();

            // Create clones of the list of schemes to use for charging, discharging, and active scheme menus
            PowerSchemes            = new ObservableCollection <PowerScheme>(schemes.Clone());
            DischargingPowerSchemes = new ObservableCollection <PowerScheme>(ActivateScheme(schemes.Clone(), Settings.Default.DischargingScheme));
            ChargingPowerSchemes    = new ObservableCollection <PowerScheme>(ActivateScheme(schemes.Clone(), Settings.Default.ChargingScheme));

            PowerActions = new ObservableCollection <PowerAction>(PowerAction.GetActions());
        }