public override void InitAccount(Account account) { base.InitAccount(account); CharacterDetailsViewModel.InitAccount(account); Func<Account, Task<ICharacter>> myCharacter = async a => await a.Session.MyCharacterAsync(); CharacterDetailsViewModel.InitCharacterFunc(myCharacter); }
public bool DeleteAccount(Account account) { if (account == null) throw new ArgumentNullException("account"); if (Accounts.Any(a => a == account)) { Accounts.Remove(account); _events.PublishOnCurrentThread(new AccountDeletedEvent(account)); Save(); return true; } return false; }
public bool AddAccount(Account account) { if (account == null) throw new ArgumentNullException("account"); if (!Accounts.Any(a => a.Username == account.Username && a.Server.ServerUri == account.Server.ServerUri)) { Accounts.Add(account); _events.PublishOnCurrentThread(new AccountAddedEvent(account)); Save(); return true; } return false; }
public virtual void InitAccount(Account account) { Account = account; }
public LogEvent(Account account, string message) { Account = account; Message = message; }
public AccountAddedEvent(Account account) { Account = account; }
public AccountChangedEvent(Account account) { Account = account; }
public AccountDeletedEvent(Account account) { Account = account; }
public LoginStatusChangedEvent(Account selectedAccount, bool isLoggedIn) { Account = selectedAccount; IsLoggedIn = isLoggedIn; }