public frmBroker() { InitializeComponent(); broker = new clsBroker(); instrumentMapping = new BrokerInstrumentMapping(); result = new clsBroker(); }
private void BindCurrencies() { BrokerInstrumentMapping instrumentMapping = new BrokerInstrumentMapping(); var result = instrumentMapping.SearchMapping(); foreach (var item in result) { if (item.BrokerCode.ToLower() == "bitfinex") { ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem(); toolStripMenuItem.Text = item.BrokerInstrumentCode; toolStripMenuItem.Name = item.BrokerCode + "." + item.BrokerInstrumentCode; toolStripMenuItem.Click += ToolStripMenuItem_Click; BitFinexToolStripMenuItem.DropDownItems.Add(toolStripMenuItem); } else if (item.BrokerCode.ToLower() == "mt") { ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem(); toolStripMenuItem.Text = item.BrokerInstrumentCode; toolStripMenuItem.Name = item.BrokerCode + "." + item.BrokerInstrumentCode; toolStripMenuItem.Click += ToolStripMenuItem_Click; MetaTraderToolStripMenuItem.DropDownItems.Add(toolStripMenuItem); } } }
public frmBrokerInstrumentMapping(MDIParentForm parent) { InitializeComponent(); instrumentMapping = new BrokerInstrumentMapping(); brokerInstrumentMapping = new clsBrokerInstrumentMapping(); brokerUpdateMapping = new clsBrokerInstrumentMapping(); this.parent = parent; }
public frmOrders() { InitializeComponent(); bitfinexAPI = new BitfinexAPI(); instrumentMapping = new BrokerInstrumentMapping(); txtSecurity.Text = "Security"; txtQuantity.Text = "Quantity"; AutoCompletetxtAddRow(); GetActiveOrders(); }
public frmMarketWatchWin() { InitializeComponent(); // mT4API = new MT4API(this); comman = new clsComman(); #region "Bitfinex" instrumentMapping = new BrokerInstrumentMapping(); AutoCompletetxtAddRow(); txtAddRow.GotFocus += TxtQuantity_GotFocus; txtAddRow.LostFocus += TxtQuantity_LostFocus; #endregion }
public frmInstrument() { InitializeComponent(); instrument = new clsInstrument(); instrumentMapping = new BrokerInstrumentMapping(); }