Example #1
0
 public override IRenderable Render()
 {
     return(new App(new AppProps
     {
         OnCancel = Props.OnCancel,
         Children =
         {
             new Window(new WindowProps
             {
                 Children = Props.Characters.Select(c =>
                                                    new Button(new ButtonProps
                 {
                     Text = c.Name,
                     OnAccept = e => Props.OnAccept?.Invoke(characterEvent.Reset(e, c))
                 })).ToList <IRenderable>()
             })
         }
     }));
 }