Exemple #1
0
 public void Save()
 {
     UserConfigService.DeleteAlerts = DeleteTriggeredAlerts;
     AlertService.SendAddress       = SendAddress;
     AlertService.SendPassword      = SendPassword;
     AlertService.ReceiveAddress    = ReceiveAddress;
     AlertService.ReceiveType       = ReceiveType;
     AlertService.Alerts            = Alerts;
     AlertService.Alerts.AddRange(_otherAlerts);
     AlertService.Save();
 }
Exemple #2
0
        private void SaveAlerts()
        {
            if (grdAlerts.Rows.Count > 0)
            {
                grdAlerts.CurrentCell = grdAlerts.Rows[0].Cells[0];
            }

            UserConfigService.DeleteAlerts = cbDeleteAlerts.Checked;
            AlertService.SendAddress       = txtSendAddress.Text;
            AlertService.SendPassword      = txtSendPassword.Text;
            AlertService.ReceiveAddress    = txtReceiveAddress.Text;
            //AlertService.ReceiveType = (Constants.Types)cmbReceiveType.Text;
            AlertService.Alerts = bsAlerts.DataSource as List <AlertDataSource>;
            AlertService.Alerts.AddRange(_otherAlerts);
            AlertService.Save();
        }