Beispiel #1
0
        public void AddEntry()
        {
            string            key = $"CIRILLA_KEY_" + Entries.Count;
            GMDEntryViewModel vm  = new GMDEntryViewModel(Entries.Count, new GMD_Entry {
                Key = key
            });

            Entries.Add(vm);
        }
Beispiel #2
0
        private bool Entries_Filter(object obj)
        {
            if (string.IsNullOrEmpty(SearchQuery))
            {
                return(true);
            }

            GMDEntryViewModel entry = obj as GMDEntryViewModel;

            return(entry.Value.IndexOf(SearchQuery, StringComparison.InvariantCultureIgnoreCase) != -1);
        }
Beispiel #3
0
        public void AddEntryNoKey()
        {
            GMDEntryViewModel vm = new GMDEntryViewModel(Entries.Count, new GMD_EntryWithoutKey());

            Entries.Add(vm);
        }