public void UpdateAccountValue(object sender, AccountValueArgs eventArgs) { switch (eventArgs.AccountValue.Key()) { case "AvailableFunds": frmMain.UpdateAvailableFunds(eventArgs.AccountValue.Value()); break; case "NetLiquidation": frmMain.UpdateNetLiquidation(eventArgs.AccountValue.Value()); break; case "TotalCashValue": frmMain.SetTotalCashValue(eventArgs.AccountValue.Value()); break; default: break; } }
public virtual void RaiseAccountValueUpdatedEvent(AccountValueArgs eventArgs) { AccountValueUpdated?.Invoke(this, eventArgs); }