public string DispatchStudent()
        {
            var view = new GenericView();
            DispatchRepository dispatchRepo = new DispatchRepository();

            var result = dispatchRepo.GetDispatchStudent(Auth.User().Id);

            return(view.Show(result));
        }
예제 #2
0
        public string DispatchStudent()
        {
            var view = new GenericView();
            DispatchRepository dispatchRepo = new DispatchRepository();

            var result = dispatchRepo.GetDispatchStudent(Auth.User().Id);

            return view.Show(result);
        }
예제 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mainForm"></param>
        /// <param name="newForm"></param>
        /// <param name="type"></param>
        public void ShowView(Form mainForm, GenericView newForm, Type type)
        {
            foreach (Form f in mainForm.MdiChildren)
            {
                if (f.GetType() == type)
                {
                    f.Activate();
                    HandleActiveView(f as GenericView);

                    return;
                }
            }
            newForm.MdiParent   = mainForm;
            newForm.WindowState = FormWindowState.Maximized;
            newForm.ShowIcon    = false;
            newForm.Show();

            HandleActiveView(newForm);
            newForm._closeViewCallBack = CloseView;
        }