public TabsContainer(SortBarPannelVM sortBarPannelVM) { Content = sortBarPannelVM; TriggerEditMode = new RelayCommand(DoTriggerEditMode); ApplyChange = new RelayCommand(DoApplyChange); CloseTab = new RelayCommand(DoCloseTab); }
public static void AddTabWithCases(ObservableCollection <CaseControlVM> cases) { if (cases.Count == 0) { return; } var tabIdent = GenerateNewTabName(); var content = new SortBarPannelVM(tabIdent); content.PopulateCases((cases.Select(o => o.CaseModel.CaseNumber)).ToArray()); Tabs.Add(new TabsContainer(content)); CasesStatesOperations.UpdateCasesPositions(cases.ToList(), null, tabIdent); cases.Clear(); }