public string DispatchStudent() { var view = new GenericView(); DispatchRepository dispatchRepo = new DispatchRepository(); var result = dispatchRepo.GetDispatchStudent(Auth.User().Id); return(view.Show(result)); }
public string DispatchStudent() { var view = new GenericView(); DispatchRepository dispatchRepo = new DispatchRepository(); var result = dispatchRepo.GetDispatchStudent(Auth.User().Id); return view.Show(result); }
/// <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; }