public Zfd(ZenFire.Connection z) { InitializeComponent(); zf = z; /* insertRow = new InsertRowCallback(eventGrid.Rows.Insert); zf.Alert += new ZenFire.Connection.AlertEventHandler(zf_Alert); */ accountListBox.Items.AddRange(zf.ListAccounts()); }
public Zfd(ZenFire.Connection z) { InitializeComponent(); zf = z; /* * insertRow = new InsertRowCallback(eventGrid.Rows.Insert); * zf.Alert += new ZenFire.Connection.AlertEventHandler(zf_Alert); */ accountListBox.Items.AddRange(zf.ListAccounts()); }
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(); }