コード例 #1
0
ファイル: FrmMain.cs プロジェクト: daniel-rr213/BatteryStatus
 private void LoadPropeties()
 {
     Battery.ChangeHighBattLevel(Settings.Default.BatteryHigh);
     Battery.ChangeLowBattLevel(Settings.Default.BatteryLow);
     PcInnactivity.ChangeMaxIdleTime(Settings.Default.PcIdleTime);
     _timeBattChk    = Settings.Default.TimeBattChk;
     _auxTimeBattChk = Settings.Default.TimeAuxBattChk;
     Voice?.ChangeNotVolume(Settings.Default.VolNot);
     if (Settings.Default.VoiceName != string.Empty)
     {
         Voice?.ChangeCurrentVoice(Settings.Default.VoiceName);
     }
     else
     {
         Settings.Default.VoiceName = Voice?.CurrenVoice;
         Settings.Default.Save();
     }
 }