Exemplo n.º 1
0
 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();
 }