Exemplo n.º 1
0
        private void addSchedule_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SectionForm newSection = new SectionForm();

            newSection.FormClosed += delegate
            {
                LoadSection();
            };
            newSection.ShowDialog();
        }
Exemplo n.º 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();
     }
 }