Exemplo n.º 1
0
        public void RefreshQuantifiedOrder()
        {
            var arr = QuantifiedTextVMs.ToArray();

            QuantifiedTextVMs.Clear();
            foreach (var item in arr)
            {
                QuantifiedTextVMs.InsertSorted(item, (a, b) => QuantifiedTextViewModel.Compare(a, b));
            }
        }
Exemplo n.º 2
0
        private void OnAdd()
        {
            QuantifiedTextViewModel newVM = new QuantifiedTextViewModel(this);

            newVM.Count = -1;
            QuantifiedTextVMs.Add(newVM);
            TextKeyVM.MainWindowVM.ValidateTextKeysDelayed();
            TextKeyVM.MainWindowVM.FileModified = true;
            newVM.ViewCommandManager.InvokeLoaded("FocusCount");
        }