コード例 #1
0
        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);
        }
コード例 #2
0
        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);
                });
            });
        }
コード例 #3
0
 public void Handle(SectionCreated evnt)
 {
     SectionTest.SectionId = evnt.SectionId;
     TestBase.EventHandlerWaiter.Set();
 }
コード例 #4
0
ファイル: Section.cs プロジェクト: darknessitachi/forum
 void IEventHandler <SectionCreated> .Handle(SectionCreated evnt)
 {
     Name = evnt.Name;
 }