#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'frm_AddNewOrUpdateMailAlarm.UpdateExistingAlarmButtonClicked'

        private void OnAddNewAlarmButtonClicked(AlarmMail am)
        {
            MailAlarmEventArgs args = new MailAlarmEventArgs();

            args.alarmMail = am;

            if (AddNewAlarmButtonClicked != null)
            {
                AddNewAlarmButtonClicked(this, args);
            }
        }
        private void OnUpdateExistingAlarmButtonClicked(AlarmMail am)
        {
            MailAlarmEventArgs args = new MailAlarmEventArgs();

            args.alarmMail = am;

            if (UpdateExistingAlarmButtonClicked != null)
            {
                UpdateExistingAlarmButtonClicked(this, args);
            }
        }
Ejemplo n.º 3
0
 private void tab_EmailSettings_AddNewAlarmButtonClicked(object source, MailAlarmEventArgs args)
 {
     if (!DBHelper_EmailAlarms.AddNewMailAlarm(args.alarmMail))
     {
         MessageBox.Show("Yeni alarm database'e eklenemedi", Constants.MessageBoxHeader);
     }
     else
     {
         LoadMailAlarmsToGridView();
         frm_addNewOrUpdateMailAlarm.Close();
     }
 }
Ejemplo n.º 4
0
 private void tab_EmailSettings_UpdateExistingAlarmButtonClicked(object source, MailAlarmEventArgs args)
 {
     try
     {
         if (!DBHelper_EmailAlarms.UpdateExistingMailAlarm(args.alarmMail.ID, args.alarmMail.Name, args.alarmMail.LogicText, args.alarmMail.MailGroupID, args.alarmMail.EMailSubject, args.alarmMail.EmailText))
         {
             MessageBox.Show("Yeni alarm database'e  eklenemedi", Constants.MessageBoxHeader);
         }
         else
         {
             LoadMailAlarmsToGridView();
             frm_addNewOrUpdateMailAlarm.Close();
         }
     }
     catch (Exception ex)
     {
         Log.Instance.Error("{0} isimli alarm güncellenemedi => {1}", args.alarmMail.Name, ex.Message);
     }
 }