Beispiel #1
0
 private static HElement Page(MainState state)
 {
     return h.Html
     (
       h.Head(
         h.Element("title", "RoboGamer.Wui"),
         h.Css
         (
             @"
               .section {min-height:100px;border:1px solid lightgray;margin-bottom:2px;}
               .header {background-color:#E0E0FF;}
             "
         )
       ),
       h.Body
       (
           h.Div
           (
               h.data("name", "mouse-event"),
               h.Input(h.type("text"), h.data("name", "x")),
               h.Input(h.type("text"), h.data("name", "y")),
               h.Input(h.type("button"), h.value("Move"), new hdata { { "container", "mouse-event" }, { "command", "mouse-event" } }, h.onclick(";"))
           ),
           h.Div
           (
               h.Input(h.type("button"), h.value("Reset"), new hdata { { "command", "reset" } }, h.onclick(";")),
               h.Input(h.type("button"), h.value("Screenshot"), new hdata { { "command", "screenshot" } }, h.onclick(";"))
           )
       )
    );
 }
Beispiel #2
0
 private static HElement Page(MainState state)
 {
     return(h.Html
            (
                h.Head(
                    h.Element("title", "RoboGamer.Wui"),
                    h.Css
                    (
                        @"
               .section {min-height:100px;border:1px solid lightgray;margin-bottom:2px;}
               .header {background-color:#E0E0FF;}
             "
                    )
                    ),
                h.Body
                (
                    h.Div
                    (
                        h.data("name", "mouse-event"),
                        h.Input(h.type("text"), h.data("name", "x")),
                        h.Input(h.type("text"), h.data("name", "y")),
                        h.Input(h.type("button"), h.value("Move"), new hdata {
         { "container", "mouse-event" }, { "command", "mouse-event" }
     }, h.onclick(";"))
                    ),
                    h.Div
                    (
                        h.Input(h.type("button"), h.value("Reset"), new hdata {
         { "command", "reset" }
     }, h.onclick(";")),
                        h.Input(h.type("button"), h.value("Screenshot"), new hdata {
         { "command", "screenshot" }
     }, h.onclick(";"))
                    )
                )
            ));
 }