Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public virtual void RaiseAccountValueUpdatedEvent(AccountValueArgs eventArgs)
 {
     AccountValueUpdated?.Invoke(this, eventArgs);
 }