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