Ejemplo n.º 1
0
        /// <summary>
        /// Check User Login
        /// </summary>
        private void OnLogin()
        {
            // Get Auth

            // Load Context
            ContextService.AddContext("Dev 1", "http://localhost/dev/AdminService.svc");
            ContextService.AddContext("Dev 2", "http://localhost/dev2/AdminService.svc");

            // Select default context
            ContextService.SelecteDefaultContext("Dev 1");

            // Load Module
            ModuleManager.LoadModule(ModuleNames.NavigationModule);
            ModuleManager.LoadModule(ModuleNames.DashboardModule);
            ModuleManager.LoadModule(ModuleNames.WarehouseModule);

            // Navigate to uri
            RegionManager.Regions[RegionNames.MainMenuRegion].RequestNavigate(new Uri(PageNames.MainMenuView, UriKind.Relative));
        }