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); }