コード例 #1
0
ファイル: Alerts.cs プロジェクト: tomoneill19/WindowsUpdateX
        private void Alerts_Load(object sender, EventArgs e)
        {
            UpdateCore.Config conf = new UpdateCore.Config();

            if (conf.AlertsForErrors)
            {
                this.RECEIVE_ALERT_ERRORS.Checked = true;
            }
            else
            {
                this.RECEIVE_ALERT_ERRORS.Checked = false;
            }

            if (conf.AlertsForWarnings)
            {
                this.RECEIVE_ALERT_FOR_WARNING.Checked = true;
            }
            else
            {
                this.RECEIVE_ALERT_FOR_WARNING.Checked = false;
            }
        }
コード例 #2
0
ファイル: Alerts.cs プロジェクト: tomoneill19/WindowsUpdateX
        private void SaveData()
        {
            UpdateCore.Config conf = new UpdateCore.Config();

            if (this.RECEIVE_ALERT_ERRORS.Checked == true)
            {
                conf.AlertsForErrors = true;
            }
            else
            {
                conf.AlertsForErrors = false;
            }

            if (this.RECEIVE_ALERT_FOR_WARNING.Checked == true)
            {
                conf.AlertsForWarnings = true;
            }
            else
            {
                conf.AlertsForWarnings = false;
            }

            conf.Save();
        }