From 924bdf1c9fb74babf2438d5545db3594756625d1 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 22 六月 2020 20:06:39 +0800
Subject: [PATCH] '完善信息'

---
 WindowsFormsApp1/utils/TBAccountManager.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/WindowsFormsApp1/utils/TBAccountManager.cs b/WindowsFormsApp1/utils/TBAccountManager.cs
index b3aff2c..2a526af 100644
--- a/WindowsFormsApp1/utils/TBAccountManager.cs
+++ b/WindowsFormsApp1/utils/TBAccountManager.cs
@@ -42,6 +42,24 @@
             }
         }
 
+        public static void Delete(int index) {
+            if (Constant.tbAccountMap.ContainsKey(index)) {
+                TBAccountLogin account = Constant.tbAccountMap[index];
+                Constant.tbAccountMap.Remove(index);
+                LogManager.AddLog(new LogInfo(DateTime.Now, "绗�" + index + "涓窐瀹濊处鍙�(" + account.NickName + ")鎺堟潈琚垹闄�", LogInfo.TYPE_NORMAL));
+                SQLiteDataBaseUtil.getInstance().TBDelete(index);
+            }
+        }
+
+
+        public static bool IsHaveOffLine() {
+            foreach (int key in Constant.tbAccountMap.Keys) {
+                if (Constant.tbAccountMap != null && Constant.tbAccountMap[key].Login == false && !StringUtil.isEmpty(Constant.tbAccountMap[key].NickName))
+                    return true;
+            }
+            return false;
+        }
+
 
             
 

--
Gitblit v1.8.0