public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modItems) { EmpathyAccountItem account = items.First() as EmpathyAccountItem; account.Account.EnableAccount(); yield break; }
public override bool SupportsItem(Item item) { if (!(item is EmpathyAccountItem)) { return(false); } EmpathyAccountItem accountItem = (item as EmpathyAccountItem); return(accountItem.Account.IsConnected()); }