void rightticket(object sender, EventArgs e) { Security s = GetVisibleSecurity(CurrentRow); if (s.Type == SecurityType.IDX) { return; } string sym = s.Symbol; if ((s.FullName == string.Empty) || (sym == string.Empty)) { return; } Order o = new OrderImpl(s.FullName, 0); o.ex = s.DestEx; o.Security = s.Type; o.LocalSymbol = sym; Ticket t = new Ticket(o); t.SendOrder += new OrderDelegate(t_neworder); spillTick += new TickDelegate(t.newTick); orderStatus += new OrderStatusDel(t.orderStatus); System.Drawing.Point p = new System.Drawing.Point(MousePosition.X, MousePosition.Y); p.Offset(-315, 20); t.SetDesktopLocation(p.X, p.Y); t.Show(); }
void rightticket(object sender, EventArgs e) { Security s = GetVisibleSecurity(qg.CurrentRowIndex); if (s.Type == SecurityType.IDX) { return; } string sym = s.Symbol; Order o = new Order(sym, -1 * tl.PosSize(sym)); o.Exchange = s.DestEx; o.Security = s.Type; o.LocalSymbol = sym; Ticket t = new Ticket(o); t.neworder += new QuotopiaOrderDel(t_neworder); spillTick += new TickDelegate(t.newTick); orderStatus += new OrderStatusDel(t.orderStatus); System.Drawing.Point p = new System.Drawing.Point(MousePosition.X, MousePosition.Y); p.Offset(-315, 20); t.SetDesktopLocation(p.X, p.Y); t.Show(); }
void rightticket(object sender, EventArgs e) { Security s = GetVisibleSecurity(qg.CurrentRowIndex); if (s.Type == SecurityType.IDX) return; string sym = s.Symbol; Order o = new Order(sym,-1*tl.PosSize(sym)); o.Exchange = s.DestEx; o.Security = s.Type; o.LocalSymbol = sym; Ticket t = new Ticket(o); t.neworder += new QuotopiaOrderDel(t_neworder); spillTick +=new TickDelegate(t.newTick); orderStatus+=new OrderStatusDel(t.orderStatus); System.Drawing.Point p = new System.Drawing.Point(MousePosition.X, MousePosition.Y); p.Offset(-315, 20); t.SetDesktopLocation(p.X, p.Y); t.Show(); }