Exemple #1
0
 public void Start(IAppContext aAppContext)
 {
     iXapp = new FormsApp(aAppContext.Services.UserList, Path.Combine(aAppContext.StaticPath, "http"));
     aAppContext.PublishXapp("forms", iXapp);
     aAppContext.Device.SetAttribute("Upnp.PresentationUrl", ":12921/forms/"); // TODO: Remove need for hard-coded port.
 }
Exemple #2
0
        public FormsAppTab(FormsApp aFormsApp, IBrowserTabProxy aBrowserTabProxy, int aId, UserList aUserList, string aUserId)
        {
            iXFTab = new XappFormsBrowserTab(aBrowserTabProxy);

            var grid = GridControl.Create(iXFTab);

            grid.TopLeft = ButtonControl.Create(iXFTab, "First");
            iTextboxOne = TextboxControl.Create(iXFTab, "Beta");
            iButtonThree = ButtonControl.Create(iXFTab, "Charlie");
            iButtonFour = ButtonControl.Create(iXFTab, "FOUR");

            grid.TopRight = iTextboxOne;
            grid.BottomRight = iButtonFour;
            grid.BottomLeft = iButtonThree;
            iButtonFour.Clicked += OnButtonFourClicked;
            iTextboxOne.KeyPress += OnTextboxOneKeyPress;
            iXFTab.Root = grid;

            iFormsApp = aFormsApp;
            iBrowserTabProxy = aBrowserTabProxy;
            iId = aId;
        }