예제 #1
0
 public TabsContainer(SortBarPannelVM sortBarPannelVM)
 {
     Content         = sortBarPannelVM;
     TriggerEditMode = new RelayCommand(DoTriggerEditMode);
     ApplyChange     = new RelayCommand(DoApplyChange);
     CloseTab        = new RelayCommand(DoCloseTab);
 }
예제 #2
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();
        }