private void OnAccountChange(object sender, AccountDataEventArgs e) { if (currentAccount == null || currentAccount.Id != e.AccountIndex) { LoadProfile(e.AccountIndex); } }
private void OnAccountRemoved(object sender, AccountDataEventArgs e) { if (currentAccount != null && currentAccount.Id == e.AccountIndex) { LoadProfileUnknown(); } }
private void Dispatcher_AccountData(object sender, AccountDataEventArgs args) { this.InvokeAction((Action)(() => this.AddAccountData(args.Data))); }
protected void OnAccountUpdateHandler(AccountDataEventArgs e) { OnAccountUpdate?.Invoke(this, e); }