Ejemplo n.º 1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            //(Profs) profBS.Current;
            var ap = new AddProf("Update Professor", ((Profs)(profBS.Current)).ProfID,
                                 ((Profs)(profBS.Current)).ProfName, ((Profs)(profBS.Current)).NoOfCourses,
                                 ((Profs)(profBS.Current)).UnassignedProf, 1);

            ap.ShowDialog();
            int position = profBS.Position;

            refreshProfs_Click();
            profBS.Position = position;
        }
Ejemplo n.º 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            var ap = new AddProf();

            ap.ShowDialog();
            DialogResult action = ap.DialogResult;

            if (action == DialogResult.OK)
            {
                int position = profBS.Position;
                refreshProfs_Click();
                profBS.Position = position;
            }
        }