예제 #1
0
 private void onGridButtonClick(int intIndex, DataGridViewButtonColumn sender)
 {
     if (sender.Name == "btnSchaden")
     {
         frmSchaden objForm = new frmSchaden();
         objForm.LoadByRowData(grdInitiative.Rows[intIndex]);
         setRowColor(grdInitiative.Rows[intIndex]);
     }
     else if (sender.Name == "btnDetails")
     {
         InitTracker.DetailForm.clsDetailFormFactory objForm = new DetailForm.clsDetailFormFactory();
         objForm.LoadByRowData(grdInitiative.Rows[intIndex]);
     }
 }
예제 #2
0
 private void grdInitiative_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         
             InitTracker.DetailForm.clsDetailFormFactory objForm = new DetailForm.clsDetailFormFactory();
             objForm.LoadByRowData(grdInitiative.Rows[intIndex]);
         
     }
     catch (Exception ex)
     {
          MessageBox.Show(ex.ToString());
     }
 }