示例#1
0
        public void Navigate(TabViewType type, object p = null)
        {
            switch (type)
            {
            case TabViewType.Warehouse:
                ViewControl.SelectedItem = WarehouseTab;
                break;

            case TabViewType.Deal:
                ViewControl.SelectedItem = DealTab;
                break;

            case TabViewType.Item:
                ViewControl.SelectedItem = ItemTab;
                break;

            case TabViewType.Salesman:
                ViewControl.SelectedItem = SalemanTab;
                break;

            case TabViewType.Customer:
                ViewControl.SelectedItem = CustomerTab;
                break;

            case TabViewType.Keeper:
                ViewControl.SelectedItem = KeeperTab;
                break;

            case TabViewType.KeeperInfo:
                ViewControl.SelectedItem = KeeperInfoTab;
                break;

            default:
                break;
            }
            ViewControl.FindVisualChildren <TabView>().FirstOrDefault()?.Init(p);
        }