示例#1
0
        public void UpdateConfig()
        {
            Config.Instance.ShutdownAfterAllFinished = ChkHalt.IsChecked ?? false;
            Config.Instance.KeepPCAwake = ChkKeepAwake.IsChecked ?? false;
            Config.Instance.RunCommandAfterCompletion = ChkRunCmd.IsChecked ?? false;
            Config.Instance.ScanWithAntiVirus         = ChkRunAntivirus.IsChecked ?? false;
            PlatformHelper.EnableAutoStart(ChkAutoRun.IsChecked ?? false);

            Config.Instance.AfterCompletionCommand = TxtCustomCmd.Text;
            Config.Instance.AntiVirusExecutable    = TxtAntiVirusCmd.Text;
            Config.Instance.AntiVirusArgs          = TxtAntiVirusArgs.Text;
            Config.Instance.FallbackUserAgent      = TxtDefaultUserAgent.Text;
        }
示例#2
0
        private void UpdateAdvancedSettingsConfig()
        {
            Config.Instance.ShutdownAfterAllFinished = ChkHalt.Active;
            Config.Instance.KeepPCAwake = ChkKeepAwake.Active;
            Config.Instance.RunCommandAfterCompletion = ChkRunCmd.Active;
            Config.Instance.ScanWithAntiVirus         = ChkRunAntivirus.Active;
            PlatformHelper.EnableAutoStart(ChkAutoRun.Active);

            Config.Instance.AfterCompletionCommand = TxtCustomCmd.Text;
            Config.Instance.AntiVirusExecutable    = TxtAntiVirusCmd.Text;
            Config.Instance.AntiVirusArgs          = TxtAntiVirusArgs.Text;
            Config.Instance.FallbackUserAgent      = TxtDefaultUserAgent.Text;
        }