Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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();
        }