| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using Shared; |
| | | namespace Shared.Phone.Device.Logic |
| | | { |
| | | public class LogicIfon |
| | |
| | | { |
| | | for (int i = 0; i < Common.Logic.CurrentLogic.Conditions.Count; i++) |
| | | { |
| | | if (Common.Logic.CurrentLogic.Conditions[i]["Type"] == "7") |
| | | if (Common.Logic.CurrentLogic.Conditions[i]["Type"] == objecttype["Type"]) |
| | | { |
| | | |
| | | Common.Logic.CurrentLogic.Conditions.RemoveAt(i); |
| | |
| | | |
| | | } |
| | | #endregion |
| | | #region ----关联app账号---- |
| | | /// <summary> |
| | | /// 关联app账号 |
| | | /// </summary> |
| | | /// <param name="accountsInfo"></param> |
| | | public static void Addaccounts(Dictionary<string, string> accountsInfo) |
| | | { |
| | | for (int i = 0; i < Common.Logic.CurrentLogic.Accounts.Count; i++) |
| | | { |
| | | if (Common.Logic.CurrentLogic.Accounts[i]["Type"] == accountsInfo["Type"]) |
| | | { |
| | | Common.Logic.CurrentLogic.Accounts.RemoveAt(i); |
| | | Common.Logic.CurrentLogic.Accounts.Insert(i, accountsInfo); |
| | | return; |
| | | } |
| | | } |
| | | Common.Logic.CurrentLogic.Accounts.Add(accountsInfo); |
| | | } |
| | | #endregion |
| | | } |
| | | |
| | | |