예제 #1
0
        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;
            }
        }
예제 #2
0
 public void GoToViewAndReload(enumView view)
 {
     SendMessage(MessageToken.ReloadMessage, null, view.ToString());
     GoToView(view);
 }
예제 #3
0
        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);
        }
예제 #4
0
 public void GoToViewAndReload(enumView view)
 {
     SendMessage(MessageToken.ReloadMessage, null, view.ToString());
     GoToView(view);
 }
예제 #5
0
 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);
 }
예제 #6
0
 public void Show(enumView eView)
 {
     ViewType = eView;
     IsShow = true;
 }
예제 #7
0
 public void Show(enumView eView)
 {
     ViewType = eView;
     IsShow   = true;
 }
예제 #8
0
 public virtual void GoToView(enumView view)
 {
     MainWindowModel.GoToView(view);
 }