Диалог изменения входящего ордера

Change Entry Order dialog has next controls:

Order ID

This is a combo box that allows selecting one of entry orders from table of Orders window. There're not only entry orders can be in this table. In initial state it is the order from selected row in table of Orders window. If there is no selected row, it is first entry order in table. There're all entry orders in popup list. If there're orders with accounts under margin call, their ids are shown with Gray foreground color. If such order is selected, text of combo box is shown with Gray foreground color too. Also the button OK becomes disabled. When order with account not under margin call is selected, text of combo box is shown with Black foreground color. Also the button OK becomes enabled if others controls permit that and the dialog is not disabled consider application state.

Amount

Rate

Order type.Stop

Order type.Limit

Functionalities of these controls is the same as functionalities of the same controls in

Entry Order Dialog

There're two buttons:

Ok

Is disabled in next cases:

1. In reconnection state.
2. If selected order has account under margin call
3. If selected order has currency that is not tradable

When the button is pressed the Change Entry Order is created and transmitted to server. But dialog has closed immediately after button is clicked.

As soon as server has admitted order, the order changes appear in table of Orders window.

Cancel

Just hides Change Entry Order dialog.