Пример #1
0
 private void btnUpdatePro_Click(object sender, EventArgs e)
 {
     if (dr != null)
     {
         FrmDetailPro detail = new FrmDetailPro(dr);
         detail.Show();
     }
 }
Пример #2
0
 private void gViewProducts_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (gViewProducts[e.ColumnIndex, e.RowIndex] != null)
         {
             FrmDetailPro detail = new FrmDetailPro(gViewProducts.Rows[e.RowIndex]);
             detail.ShowDialog();
             this.OnLoad(null);
         }
     }
     catch (Exception)
     {
     }
 }