wxr
2019-11-27 590a012a34db27cd1630eb70406e05d5af55e4ca
HDL_ON/UI/MainPage.cs
@@ -1,18 +1,13 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using HDL_ON.DAL;
using HDL_ON.UI.CSS;
using Shared;
namespace HDL_ON.UI
namespace HDL_ON
{
    public static class MainPage
    {
        public static FrameLayout BaseView { get; internal set; }
        //public static PageLayout MainPageView { get; internal set; }
        public static bool DisplayCompleted = false;
@@ -41,20 +36,32 @@
                BaseView = Application.MainPage;
                Application.MainPage.BackgroundColor = CSS_Color.MainBackgroundColor;
                //MainPageView = new PageLayout() {
                //    IsShowPoint = false,
                //};
                //BaseView.AddChidren(MainPageView);
                var loginBaseView = new UI1Login.LoginBaseView();
                BaseView.AddChidren(loginBaseView);
#if DEBUG
                MainPage.LoginUser = new UserInfo
                {
                    ID = 0,
                    AccountType = 0,
                    AccountString = "zxn@hdlchina.com.cn",
                    Password = "",
                    UserName = "小七小七",
                    LastTime = DateTime.Now,
                };
                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;
                loginBaseView.AddChidren(fisrtView);
                BaseView.AddChidren(fisrtView);
                fisrtView.LoadView();
#endif
                //HDL_ON
            }
            catch
            {