Esempio n. 1
0
 /// <summary>
 /// Рекакция на категория
 /// </summary>
 private void dgvCatIN_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         using (FCategory_Edit fCat = new FCategory_Edit())
         {
             fCat.ConnectionString = _ConnectionString;
             fCat.ShowForm(Convert.ToInt32(dgvCatIN.CurrentRow.Cells["gcCategoryID_IN"].Value));
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
     cbTNCategoriesSub_SelectedIndexChanged(null, null);
 }
Esempio n. 2
0
 /// <summary>
 /// Рекакция на категория
 /// </summary>
 private void dgvCatOUT_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         using (FCategory_Edit fCat = new FCategory_Edit())
         {
             fCat.ConnectionString = _ConnectionString;
             fCat.ShowForm(Convert.ToInt32(dgvCatOUT.CurrentRow.Cells["gcCategoryID_OUT"].Value));
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         return;
     }
     cbTNCategoriesSub_SelectedIndexChanged(null, null);
 }