Пример #1
0
        private void btnViewJournal_Click(object sender, EventArgs e)
        {
            //open viewJournal window
            JournalViewWindow jvWindow = new JournalViewWindow(TeacherID);

            jvWindow.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            jvWindow.Owner = this;
            jvWindow.Show();
            this.Hide();
        }
Пример #2
0
 private void btnViewJournal_Click(object sender, EventArgs e)
 {
     //open viewJournal window
     JournalViewWindow jvWindow = new JournalViewWindow(TeacherID);
     jvWindow.FormClosed+=((o,s) =>
     {
         this.Show();
     });
     jvWindow.Owner = this;
     jvWindow.Show();
     this.Hide();
 }