Пример #1
0
        private void addSchedule_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SectionForm newSection = new SectionForm();

            newSection.FormClosed += delegate
            {
                LoadSection();
            };
            newSection.ShowDialog();
        }
Пример #2
0
 private void editSchedule_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (dgvListOfClasses.SelectedCells.Count > 0)
     {
         int         sectionId   = Convert.ToInt32(dgvListOfClasses.Rows[sectionRowIndex].Cells["SectionId"].Value.ToString());
         SectionForm editSection = new SectionForm(sectionId);
         editSection.FormClosed += delegate
         {
             LoadSection();
         };
         editSection.ShowDialog();
     }
 }