Пример #1
0
 public async Task CollectionChangedAsync(IList <ICollectionViewSourceEntity> items)
 {
     Model.ClassificationAverages.Items.Clear();
     foreach (var item in items.Where(item => item.GetType() == Model.ClassificationAverages.EntityType))
     {
         Model.ClassificationAverages.Items.Add(item);
     }
     await GuiAndAppHandler.EnableOrDisableButtonsThenSyncGuiAndAppAsync();
 }
Пример #2
0
        public async Task TextChangedAsync(string text)
        {
            var textBox = TextBoxGetter(Model);

            if (textBox.Text == text)
            {
                return;
            }

            textBox.Text = text;
            textBox.Type = StatusType.None;
            await GuiAndAppHandler.EnableOrDisableButtonsThenSyncGuiAndAppAsync();
        }