Example #1
0
 private void btnaaeedit_Click(object sender, EventArgs e)
 {
     if (txtfiopac.Text == "" || txtbolezn.Text == "" || dtppost.Text == "" || dtpvip.Text == "" || txtdolzhn.Text == "" || txtfiovr.Text == "")
     {
         MessageBox.Show("Заполните все поля", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         FileWork.AddUpdate(
             Id,
             txtfiopac.Text,
             txtbolezn.Text,
             Convert.ToDateTime(dtppost.Text),
             Convert.ToDateTime(dtpvip.Text),
             txtdolzhn.Text,
             txtfiovr.Text);
         Close();
     }
 }
Example #2
0
 public void Save()
 {
     FileWork.AddUpdate(id, FIObol, Bolezn, Prishel, Ushel, DolzVracha, FIOvr);
 }
Example #3
0
 private void FillData()
 {
     dataGridView1.DataSource = FileWork.ReadTable();
 }