public void GoToView(enumView view, object parameter = null) { switch (view) { case enumView.CompanyManagement: fncCallFormInTab(new frmCompanyManagement()); break; case enumView.PurchaseOrderDetail: var frm = new frmPurchaseOrderDetail(this); frm.CurrentOrder = (VinaGerman.Entity.BusinessEntity.OrderEntity)parameter; fncCallFormInTab(frm); break; default: break; } }
public void GoToViewAndReload(enumView view) { SendMessage(MessageToken.ReloadMessage, null, view.ToString()); GoToView(view); }
public void GoToView(enumView view) { switch (view) { // case enumView.ContactManagement: CurrentModel = ContactManagementModel; break; case enumView.LocationManagement: CurrentModel = LocationManagementModel; break; case enumView.DepartmentManagement: CurrentModel = DepartmentManagementModel; break; case enumView.PurchaseOrderDetail: CurrentModel = PurchaseOrderDetailModel; break; case enumView.PurchaseOrderManagement: CurrentModel = PurchaseOrderManagementModel; break; case enumView.SaleOrderDetail: CurrentModel = SaleOrderDetailModel; break; case enumView.SaleOrderManagement: CurrentModel = SaleOrderManagementModel; break; case enumView.ArticleManagement: CurrentModel = ArticleManagementModel; break; case enumView.IndustryManagement: CurrentModel = IndustryManagementModel; break; case enumView.BusinessManagement: CurrentModel = BusinessManagementModel; break; case enumView.CategoryManagement: CurrentModel = CategoryManagementModel; break; case enumView.CompanyManagement: CurrentModel = CompanyManagementModel; break; case enumView.Logon: CurrentModel = LogonModel; break; default: CurrentModel = LogonModel; break; } ModelQueue.Add(CurrentModel); }
public void Show(enumView eView) { ViewType = eView; IsShow = true; }
public virtual void GoToView(enumView view) { MainWindowModel.GoToView(view); }