public void PageSelected(PageDto page) { if (page == null) { Log.Msg(this, l => l.Warning("Selected page was null")); return; } Pages.ForEach(p => p.Deselect()); page.Select(); MessageBus.Publish(new PageSelected(page)); }
public void AddPage(PageDto page) { Pages = Pages.Add(page); }
public PageSelected(PageDto page) { Page = page; }