Beispiel #1
0
 private void btSemMissAdd_Click(object sender, EventArgs e)
 {
     try
     {
         Buffer.State = "add";
         int CardID = Convert.ToInt32(dgCards[0, dgCards.CurrentRow.Index].Value.ToString());
         FSemesterMissings frmSemMiss = new FSemesterMissings(CardID);
         frmSemMiss.ShowDialog();
         ReloadAllOfCards();
     }
     catch
     {
         MessageBox.Show("Выберите Личную карточку", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
 private void btSemMissEdit_Click(object sender, EventArgs e)
 {
     try
     {
         Buffer.State = "edit";
         int CardID    = Convert.ToInt32(dgCards[0, dgCards.CurrentRow.Index].Value.ToString());
         int SemMissID = Convert.ToInt32(dgSemMiss[0, dgSemMiss.CurrentRow.Index].Value.ToString());
         int Sem       = Convert.ToInt32(dgSemMiss[2, dgSemMiss.CurrentRow.Index].Value.ToString());
         int Lmiss     = Convert.ToInt32(dgSemMiss[3, dgSemMiss.CurrentRow.Index].Value.ToString());
         int Imiss     = Convert.ToInt32(dgSemMiss[4, dgSemMiss.CurrentRow.Index].Value.ToString());
         FSemesterMissings frmSemMiss = new FSemesterMissings(SemMissID, CardID, Sem, Lmiss, Imiss);
         frmSemMiss.ShowDialog();
         ReloadAllOfCards();
     }
     catch
     {
         MessageBox.Show("Выберите редактируемую строку", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }