예제 #1
0
        private void qrupRedakteEtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StudentsForm studentsForm = new StudentsForm();

            studentsForm.Show();
            this.Hide();
        }
예제 #2
0
        private void Button4_Click(object sender, System.EventArgs e)
        {
            var studentsForm = new StudentsForm();

            studentsForm.ShowDialog();
            studentsForm.Dispose();
        }
        public StudentsController(StorageContext context, StudentsForm form)
        {
            _context = context;
            _form    = form;

            _form.RefreshData += RefreshDataHandler;
            _form.ChangeData  += ChangeItemHandler;
            _form.AddItem     += AddItemHandler;
        }
예제 #4
0
        private void OpenStudentsHandler()
        {
            var studForm       = new StudentsForm();
            var studController = new StudentsController(_context, studForm);

            _form.Hide();
            studForm.ShowDialog();
            _form.Show();
        }
예제 #5
0
 public StudentsController(StudentsForm view, StorageContext context)
 {
     _view              = view;
     _view.Load        += LoadHandler;
     _view.RefreshData += RefreshDataHandler;
     _view.AddData     += AddDataHandler;
     _view.ChangeData  += ChangeDataHandler;
     _view.DeleteData  += DeleteDataHandler;
     _context           = context;
 }
        public void ShowStudentsWindowHandler()
        {
            StudentsForm studentsForm = new StudentsForm();

            _ = new StudentsController(studentsForm, _context);

            _view.Hide();

            studentsForm.ShowDialog();

            _view.Show();
        }
예제 #7
0
 public static void ShowFormHocSinh()
 {
     if (m_StudentsForm == null || m_StudentsForm.IsDisposed)
     {
         m_StudentsForm           = new StudentsForm();
         m_StudentsForm.MdiParent = MainForm.ActiveForm;
         m_StudentsForm.Show();
     }
     else
     {
         m_StudentsForm.Activate();
     }
 }
        private void btnStudentManage_Click(object sender, EventArgs e)
        {
            StudentsForm frm = new StudentsForm();

            frm.ShowDialog();
        }
예제 #9
0
 private void ftsMenuItemShowStudents_Click(object sender, EventArgs e)
 {
     StudentsForm.Show();
 }