| | |
| | | |
| | | public static List<string> LocationFiles; |
| | | |
| | | public static string VersionString = "3.01205"; |
| | | |
| | | /// <summary> |
| | | /// 公司代码 |
| | | /// 预留第三方定制标记 |
| | |
| | | Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | |
| | | |
| | | #if DEBUG |
| | | MainPage.LoginUser = new UserInfo |
| | | Log("1"); |
| | | LoginUser = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo>(System.Text.Encoding.UTF8.GetString(MyIO.FileUtils.ReadFile("Register_File"))); |
| | | Log("2"); |
| | | //判断需不需要登录,有没有登录,或者登录是否过期, |
| | | if (LoginUser == null || !LoginUser.IsLogin) |
| | | { |
| | | ID = 0, |
| | | AccountType = 0, |
| | | AccountString = "zxn@hdlchina.com.cn", |
| | | Password = "", |
| | | UserName = "小七小七", |
| | | LastTime = DateTime.Now, |
| | | }; |
| | | var fisrtView = new UI.UI1Login.LoginPage(); |
| | | fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | BaseView.AddChidren(fisrtView); |
| | | fisrtView.LoadView(); |
| | | |
| | | var ss = new UI.UserPage(); |
| | | MainPage.BaseView.AddChidren(ss); |
| | | ss.ChoosePersonalCenter(); |
| | | |
| | | //var personalCenterPage = new UI2.PersonalCenterPage(); |
| | | //MainPage.BaseView.AddChidren(personalCenterPage); |
| | | //personalCenterPage.LoadView(); |
| | | #else |
| | | var fisrtView = new UI1Login.LoginPage(); |
| | | fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | BaseView.AddChidren(fisrtView); |
| | | fisrtView.LoadView(); |
| | | #endif |
| | | |
| | | } |
| | | else |
| | | { |
| | | //跳转页面---- |
| | | var ss = new UI.UserPage(); |
| | | BaseView.AddChidren(ss); |
| | | ss.LoadPage(); |
| | | } |
| | | } |
| | | catch |
| | | { |