Пример #1
0
 private void btnTeacher_Click(object sender, EventArgs e)
 {
     if (TeacherDockWindow == null)
     {
         TeacherDockWindow             = new DocumentWindow();
         TeacherDockWindow.CloseAction = DockWindowCloseAction.Close;
         fmTeacherList = new frmTeacherList();
         fmTeacherList.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         fmTeacherList.TopLevel        = false;
         fmTeacherList.Dock            = DockStyle.Fill;
         TeacherDockWindow.Text        = fmTeacherList.Text;
         TeacherDockWindow.Controls.Add(fmTeacherList);
         this.radDock1.AddDocument(TeacherDockWindow);
         fmTeacherList.Show();
     }
     else
     {
         TeacherDockWindow.Show();
     }
     this.radDock1.ActiveWindow = TeacherDockWindow;
 }