Page PreparePage(ViewSectionId id)
        {
            var page = GetPage(id);

            page.Title = id.GetTitle();
            return(page);
        }
Beispiel #2
0
        Page GetPage(ViewSectionId id)
        {
            var page = id switch
            {
                ViewSectionId.AvatarView => new AvatarViewPage(),
                _ => throw new System.NotImplementedException()
            };

            page.Title = id.GetTitle();
            return(page);
        }
    }
Beispiel #3
0
 public ViewSectionModel(ViewSectionId id)
 {
     Id    = id;
     Title = id.GetTitle();
 }
 Page GetPage(ViewSectionId id)
 => id switch
 {
Beispiel #5
0
 public static string GetTitle(this ViewSectionId id)
 => id switch
 {