Ejemplo n.º 1
0
        public bool BindMenuItems(clsXamController controller)
        {
            Globals.myXamApp.RootModel = new RootViewModel()
            {
                Title    = Globals.myXamApp.objAppExtender.ProgramName(),
                UserName = Globals.myPolice().GiveUserName(),
                Items    = controller.AppModel.BarManager.ToolBars[1].Items
            };
            var pg = this.MainPage as RootPage;

            pg.MenuPage.InitMenuPage(false, true, true, false);
            pg.MenuPage.BindingContext = Globals.myXamApp.RootModel;
            pg.HomePage.BindingContext = Globals.myXamApp.RootModel;
            var pView = new clsXamView(EnumViewMode.acNormalM, Globals.myController());

            return(true);
        }
Ejemplo n.º 2
0
        public async Task <Boolean> BindMenuItems(clsXamController controller)
        {
            Globals.myXamApp.RootModel = new RootViewModel()
            {
                Title    = Globals.myXamApp.objAppExtender.ProgramName(),
                UserName = Globals.myPolice().GiveUserName(),
                Items    = controller.AppModel.BarManager.ToolBars[1].Items
            };
            var pg = this.MainPage as RootPage;

            pg.MenuPage.InitMenuPage(false, true, true, false);
            pg.MenuPage.BindingContext = Globals.myXamApp.RootModel;
            pg.HomePage.BindingContext = Globals.myXamApp.RootModel;
            var pView = new clsXamView(EnumViewMode.acNormalM, Globals.myController());

            //var pg2 = new frmPIDUnitMan();
            //await pg2.PrepForm(pView, EnumfrmMode.acEditM, "2");
            //var pg3 = new frmDivision();
            //await pg3.PrepForm(pView, EnumfrmMode.acEditM, "6");
            //var pg4 = new frmWorkItem();
            //await pg4.PrepForm(pView, EnumfrmMode.acEditM, "4");
            //this.MainPage = pg4;
            return(await Task.FromResult(true));
        }