Exemple #1
0
 private void EditBeremBTN()
 {
     try
     {
         using (AddBerem abForm = new AddBerem(int.Parse(dataCertifRod.CurrentRow.Cells[12].Value.ToString()), false))
         {
             abForm.ShowDialog();
         }
         LoadBeremCertif();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
         logger.Debug("\n/--------------------------------------------------------------------/\n" + ex.StackTrace + "\n//----------------------------//\n" + ex.Message + "\n\n");
     }
 }
        private void DataBerem_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                using (AddBerem abForm = new AddBerem(int.Parse(dataBerem.CurrentRow.Cells[12].Value.ToString()), false))
                {
                    abForm.ShowDialog();
                }

                dataBerem.AutoGenerateColumns = false;
                dataBerem.DataSource          = LoadClass.LoadBeremCertif(dateFrom.Value.ToString("yyyy-MM-dd"), dateTo.Value.ToString("yyyy-MM-dd"));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
                logger.Debug("\n/--------------------------------------------------------------------/\n" + ex.StackTrace + "\n//----------------------------//\n" + ex.Message + "\n\n");
            }
        }