예제 #1
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     if (KolVoListovDelaTB.Text != "" && KolVoListovOpTB.Text != "" && YCCB.Text != "")
     {
         a = DocsForYC.CurrentRow.Cells[0].Value.ToString();
         bool b = WorkWithDB.AddActYC(Convert.ToInt32(a), Convert.ToInt32(KolVoListovDelaTB.Text), Convert.ToInt32(KolVoListovOpTB.Text), dateTimePicker1.Value, dateTimePicker2.Value, Convert.ToInt32(YCCB.SelectedValue));
         if (b == true)
         {
             MessageBox.Show("Дело обновлено");
         }
         else
         {
             MessageBox.Show("Дело не обновлено");
         }
     }
 }