| | |
| | | HttpServerRequest pm; |
| | | #endregion |
| | | |
| | | string verAccount = ""; |
| | | |
| | | public void VerfifyLogin(string account ) |
| | | { |
| | | verAccount = account; |
| | | LoadView(account); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载视图 |
| | | /// </summary> |
| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 注册与快捷登录 |
| | | btnRegister = new Button() |
| | | { |
| | |
| | | }; |
| | | bodyView.AddChidren(btnLogin); |
| | | |
| | | |
| | | LoadEventList(); |
| | | account = etAccount.Text.Trim(); |
| | | |
| | | #if DEBUG |
| | | //本地模式 |
| | | Button btnLocalMode = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(600), |
| | | Height = Application.GetRealHeight(67), |
| | | Text = "Local Mode", |
| | | TextAlignment = TextAlignment.Center, |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextColor = CSS_Color.TextualColor, |
| | | }; |
| | | bodyView.AddChidren(btnLocalMode); |
| | | |
| | | btnLocalMode.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | MainPage.LocalMode = true; |
| | | MainPage.LoginUser = new UserInfo(); |
| | | MainPage.GoUserPage(); |
| | | }; |
| | | |
| | | #endif |
| | | |
| | | } |
| | | } |
| | | } |