Ejemplo n.º 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     using (frmClearances clearances = new frmClearances(0))
     {
         clearances.ShowDialog();
         ReloadGrids();
     }
 }
Ejemplo n.º 2
0
 private void dgUnprocessed_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Right)
     {
         int clearanceID = int.Parse(dgUnprocessed.Rows[e.RowIndex].Cells[0].Value.ToString());
         using (frmClearances clearances = new frmClearances(clearanceID))
         {
             clearances.ShowDialog();
             ReloadGrids();
         }
     }
 }