public QuoteBoardEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallBack(eventGrid.Rows.Insert); zf.TickEvent += new ZenFire.Connection.TickEventHandler(zf_QuoteBoardUpdate); }
public CompletedOrdersEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallBack(eventGrid.Rows.Insert); zf.OrderEvent += new ZenFire.Connection.OrderEventHandler(zf_CompletedOrdersUpdate); }
public AccountSummaryEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallback(eventAccountGrid.Rows.Insert); zf.AccountEvent += new ZenFire.Connection.AccountEventHandler(zf_AccountUpdate); }
public PositionEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallback(eventGrid.Rows.Insert); zf.PositionEvent += new ZenFire.Connection.PositionEventHandler(zf_PositionUpdate); }
public PositionDetailsEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallback(eventGrid.Rows.Insert); zf.AccountEvent += new ZenFire.Connection.AccountEventHandler(zf_PositionDetailsUpdate); }
public OrderEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; insertRow = new InsertRowCallback(eventGrid.Rows.Insert); zf.OrderEvent += new ZenFire.Connection.OrderEventHandler(zf_OrderEvent); }
public AlertEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; timeFmt = "h:mm:ss.fff"; insertRow = new InsertRowCallback(eventGrid.Rows.Insert); zf.AlertEvent += new ZenFire.Connection.AlertEventHandler(zf_AlertEvent); }
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()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ZenFire.Connection zf = new ZenFire.Connection("../../cert"); zf.SetOption("intraday_tick", 1); Application.Run(new Login(zf)); if (zf.IsConnected()) Application.Run(new Zfd(zf)); else MessageBox.Show("Error connecting"); }
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 TickEventWindow(ZenFire.Connection z) { InitializeComponent(); zf = z; timeFmt = "h:mm:ss.fff"; insertRow = new InsertRowCallback(eventGrid.Rows.Insert); exchangeComboBox.DisplayMember = "Text"; exchangeComboBox.ValueMember = "ID"; exchangeComboBox.DataSource = zf.ListExchanges(); tick = new ZenFire.Connection.TickEventHandler(zf_TickEvent); zf.TickEvent += tick;// new ZenFire.Connection.TickEventHandler(zf_TickEvent); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ZenFire.Connection zf = new ZenFire.Connection("../../cert"); zf.SetOption("intraday_tick", 1); Application.Run(new Login(zf)); if (zf.IsConnected()) { Application.Run(new Zfd(zf)); } else { MessageBox.Show("Error connecting"); } }