private async Task OnSectionCreated(SectionCreated msg) { var notebooks = await _notebook.GetNotebooks(); var updatedParentNotebook = notebooks.SingleOrDefault(n => n.Directory.FullName == msg.NewSectionParentNotebook.Directory.FullName); await GetSections(updatedParentNotebook); }
private async Task OnSectionCreated(SectionCreated msg) { var notebooks = await _notebook.GetNotebooks(); var selectedNotebook = Notebooks.Single(n => n.IsSelected); await DoOnUiDispatcherAsync(() => { Notebooks.Clear(); notebooks.ForEach(n => { if (n.Id == selectedNotebook.Id) { n.Select(); } Notebooks.Add(n); }); }); }
public void Handle(SectionCreated evnt) { SectionTest.SectionId = evnt.SectionId; TestBase.EventHandlerWaiter.Set(); }
void IEventHandler <SectionCreated> .Handle(SectionCreated evnt) { Name = evnt.Name; }