| | |
| | | } |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |
| | | |
| | | |
| | | |