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(); }
internal void UpdateCasesPositions() { CasesStatesOperations.UpdateCasesPositions(CaseControls.ToList(), _previousQueue, TabHeader); CasesStatesOperations.UpdateLabelsPositions(CellLabels.ToList(), _previousQueue, TabHeader); }