private void dgv_MailAlarms_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AlarmMail am = new AlarmMail();

            am.ID            = uint.Parse(dgv_MailAlarms.SelectedRows[0].Cells["id"].Value.ToString());
            am.Name          = dgv_MailAlarms.SelectedRows[0].Cells["Alarm Adı"].Value.ToString();
            am.EMailSubject  = dgv_MailAlarms.SelectedRows[0].Cells["E-Mail Konu"].Value.ToString();
            am.EmailText     = dgv_MailAlarms.SelectedRows[0].Cells["Mesaj"].Value.ToString();
            am.LogicText     = dgv_MailAlarms.SelectedRows[0].Cells["Alarm Lojiği"].Value.ToString();
            am.MailGroupName = dgv_MailAlarms.SelectedRows[0].Cells["E-Posta Grubu"].Value.ToString();

            frm_addNewOrUpdateMailAlarm = new frm_AddNewOrUpdateMailAlarm(am);
            frm_addNewOrUpdateMailAlarm.UpdateExistingAlarmButtonClicked += tab_EmailSettings_UpdateExistingAlarmButtonClicked;
            frm_addNewOrUpdateMailAlarm.ShowDialog();
        }
 private void btn_AddNewAlarm_Click(object sender, EventArgs e)
 {
     frm_addNewOrUpdateMailAlarm = new frm_AddNewOrUpdateMailAlarm();
     frm_addNewOrUpdateMailAlarm.AddNewAlarmButtonClicked += tab_EmailSettings_AddNewAlarmButtonClicked;
     frm_addNewOrUpdateMailAlarm.ShowDialog();
 }