Beispiel #1
0
        private void btnAddNew_Click(object sender, EventArgs e)
        {
            EditRiskAndAction win = new EditRiskAndAction();

            win.ShowDialog();

            RefreshData();
        }
Beispiel #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (IsMasterRAR)
     {
         OpenView();
     }
     else
     {
         EditRiskAndAction win = new EditRiskAndAction((ModelRiskAlert)dgvAlerts.SelectedRows[0].Tag);
         win.ShowDialog();
         RefreshData();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Opens the edit window with the selected (double clicked) alert.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvAlerts_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0 || e.ColumnIndex == 6)
     {
         return;
     }
     if (IsMasterRAR)
     {
         OpenView();
     }
     else
     {
         var win = new EditRiskAndAction((ModelRiskAlert)dgvAlerts.Rows[e.RowIndex].Tag);
         win.ShowDialog();
         RefreshData();
     }
 }