From 9aa32bd5ed75d54b2141b6c91f163d43216a3643 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 06 十二月 2019 13:14:02 +0800
Subject: [PATCH] 20191206

---
 HDL_ON/UI/MainPage.cs |   39 +++++++++++++++++++++------------------
 1 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 9c9f14e..46005fc 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -1,24 +1,21 @@
 锘縰sing 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;
 
         public static UserInfo LoginUser;
 
         public static List<string> LocationFiles;
+
+        public static string VersionString = "3.01205";
 
         /// <summary>
         /// 鍏徃浠g爜
@@ -41,20 +38,26 @@
                 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);
-                var fisrtView = new UI1Login.LoginPage();
+                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)
+                {
+                    var fisrtView = new UI.UI1Login.LoginPage();
+                    fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor;
+                    BaseView.AddChidren(fisrtView);
+                    fisrtView.LoadView();
 
-                fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor;
-                loginBaseView.AddChidren(fisrtView);
-                fisrtView.LoadView();
-
-                //HDL_ON
+                }
+                else
+                {
+                    //璺宠浆椤甸潰----
+                    var ss = new UI.UserPage();
+                    BaseView.AddChidren(ss);
+                    ss.LoadPage();
+                }
             }
             catch
             {

--
Gitblit v1.8.0