예제 #1
0
        /// <summary>
        /// save
        /// сохранить
        /// </summary>
        private void Save()
        {
            if (ComboBoxModeMail.Text == OsLocalization.Logging.Label1)
            {
                _sender.MailSendOn = true;
            }
            else
            {
                _sender.MailSendOn = false;
            }

            _sender.MailSignalSendOn  = CheckBoxMailSignal.IsChecked.Value;
            _sender.MailTradeSendOn   = CheckBoxMailTrade.IsChecked.Value;
            _sender.MailErrorSendOn   = CheckBoxMailError.IsChecked.Value;
            _sender.MailSystemSendOn  = CheckBoxMailSystem.IsChecked.Value;
            _sender.MailConnectSendOn = CheckBoxMailConnect.IsChecked.Value;

            if (ComboBoxModeSms.Text == OsLocalization.Logging.Label1)
            {
                _sender.SmsSendOn = true;
            }
            else
            {
                _sender.SmsSendOn = false;
            }

            _sender.SmsSignalSendOn  = CheckBoxSmsSignal.IsChecked.Value;
            _sender.SmsTradeSendOn   = CheckBoxSmsTrade.IsChecked.Value;
            _sender.SmsErrorSendOn   = CheckBoxSmsError.IsChecked.Value;
            _sender.SmsSystemSendOn  = CheckBoxSmsSystem.IsChecked.Value;
            _sender.SmsConnectSendOn = CheckBoxSmsConnect.IsChecked.Value;
            _sender.Save();
        }
예제 #2
0
        private void Save() // сохранить
        {
            if (ComboBoxModeMail.Text == "Включен")
            {
                _sender.MailSendOn = true;
            }
            else
            {
                _sender.MailSendOn = false;
            }

            _sender.MailSignalSendOn  = CheckBoxMailSignal.IsChecked.Value;
            _sender.MailTradeSendOn   = CheckBoxMailTrade.IsChecked.Value;
            _sender.MailErrorSendOn   = CheckBoxMailError.IsChecked.Value;
            _sender.MailSystemSendOn  = CheckBoxMailSystem.IsChecked.Value;
            _sender.MailConnectSendOn = CheckBoxMailConnect.IsChecked.Value;

            if (ComboBoxModeSms.Text == "Включен")
            {
                _sender.SmsSendOn = true;
            }
            else
            {
                _sender.SmsSendOn = false;
            }

            _sender.SmsSignalSendOn  = CheckBoxSmsSignal.IsChecked.Value;
            _sender.SmsTradeSendOn   = CheckBoxSmsTrade.IsChecked.Value;
            _sender.SmsErrorSendOn   = CheckBoxSmsError.IsChecked.Value;
            _sender.SmsSystemSendOn  = CheckBoxSmsSystem.IsChecked.Value;
            _sender.SmsConnectSendOn = CheckBoxSmsConnect.IsChecked.Value;
            _sender.Save();
        }