예제 #1
0
        public App()
        {
            Page page;

            InitializeComponent();
            if (App.UserSession == null)
            {
                App.UserSession = new ZCMobileSystemConfiguration {
                    SideContentVisibility = true
                };
            }

            if (Properties.ContainsKey(SelectedDataCenter))
            {
                App.UserSession.SelectedDataCenter = (string)Properties[SelectedDataCenter];
            }

            if (!string.IsNullOrEmpty(App.UserSession.SelectedDataCenter))
            {
                page = new LoginPage();
            }
            else
            {
                page = new MainPage();
            }

            App.Current.MainPage = MasterDetailControl.Create <MasterDetail, MasterDetailViewModel>(App.IsUSerLoggedIn, page);
            GetPageTitles();
        }
예제 #2
0
 public App()
 {
     InitializeComponent();
     MainPage = MasterDetailControl.Create<MasterDetail, MasterDetailViewModel>();
 }