private async void Login_PageCompleted(object sender, object e) { _loginmode = AppLogin.LoginMode; MasterPage.LoginSuccessful = true; if (_loginmode == WinAppLibrary.UI.LogMode.OffMode) { var options = await GetLoginUserInfo(); if (options[Lib.HashKey.Key_LoginAccount] != null) { _useraccount = options[Lib.HashKey.Key_LoginAccount]; } } //this.Frame.Navigate(typeof(MainPage), _useraccount.PersonnelID); DateTime sdate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 6, 30, 00); DateTime edate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 7, 00, 00); if (sdate.CompareTo(DateTime.Now) < 0 && edate.CompareTo(DateTime.Now) > 0) { this.Frame.Navigate(typeof(Discipline.Administrator.CrewBrassIn), _useraccount.PersonnelID); } else { this.Frame.Navigate(typeof(MainMenu), _useraccount.PersonnelID); //this.Frame.Navigate(typeof(Element.Reveal.Crew.Discipline.ITR.ITR_Master)); } }
private void Login_PageCompleted(object sender, object e) { _loginmode = AppLogin.LoginMode; MasterPage.LoginSuccessful = true; //Lib.ProjectModuleSource.RequestUpdate = true; this.Frame.Navigate(typeof(MainMenu), _useraccount.PersonnelId); }