public PlaceOrderWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; Bind.List(accountComboBox, zf.ListAccounts()); Bind.List(actionComboBox, Bind.FromEnum(ZenFire.Order.Action.Buy)); Bind.List(durationComboBox, Bind.FromEnum(ZenFire.Order.Duration.Day)); Bind.List(typeComboBox, Bind.FromEnum(ZenFire.Order.Type.Market)); exchangeComboBox.DisplayMember = "Text"; exchangeComboBox.ValueMember = "ID"; exchangeComboBox.DataSource = zf.ListExchanges(); }
public Login(ZenFire.Connection z) { zf = z; InitializeComponent(); Bind.List(env, zf.ListEnvironments()); }