示例#1
0
        void ShowAllOrders()
        {
            AllOrdersViewModel workspace =
                this.Workspaces.FirstOrDefault(vm => vm is AllOrdersViewModel)
                as AllOrdersViewModel;

            if (workspace == null)
            {
                workspace = new AllOrdersViewModel();
                this.Workspaces.Add(workspace);
            }

            this.SetActiveWorkspace(workspace);
        }
        void ShowAllOrders()
        {
            AllOrdersViewModel workspace =
                this.Workspaces.FirstOrDefault(vm => vm is AllOrdersViewModel)
                as AllOrdersViewModel;

            if (workspace == null)
            {
                workspace = new AllOrdersViewModel();
                this.Workspaces.Add(workspace);
            }

            this.SetActiveWorkspace(workspace);
        }