Table of Contents

Class OrderGrid

Namespace
StockSharp.Xaml
Assembly
StockSharp.Xaml.dll

The table showing orders (Order).

public class OrderGrid : BaseGridControl, IPersistable, IComponentConnector
Inheritance
OrderGrid
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

OrderGrid()

Initializes a new instance of the OrderGrid.

public OrderGrid()

Fields

CancelOrderCommand

The command for the cancel of selected orders.

public static readonly RoutedCommand CancelOrderCommand

Field Value

RoutedCommand

CopyErrorCommand

The command for the copying of the error text.

public static readonly RoutedCommand CopyErrorCommand

Field Value

RoutedCommand

ReRegisterOrderCommand

The command for the order re-registration.

public static readonly RoutedCommand ReRegisterOrderCommand

Field Value

RoutedCommand

RegisterOrderCommand

The command for the order registration.

public static readonly RoutedCommand RegisterOrderCommand

Field Value

RoutedCommand

Properties

IsInteractive

Interactive mode.

public bool IsInteractive { get; set; }

Property Value

bool

MaxCount

The maximum number of orders to display. The -1 value means unlimited amount. The default is 100000.

public int MaxCount { get; set; }

Property Value

int

Orders

The list of orders that have been added to the table.

public IListEx<Order> Orders { get; }

Property Value

IListEx<Order>

SelectedOrder

The selected order.

public Order SelectedOrder { get; }

Property Value

Order

SelectedOrders

Selected orders.

public IEnumerable<Order> SelectedOrders { get; }

Property Value

IEnumerable<Order>

Methods

AddRegistrationFail(OrderFail)

To add a description of the registration error to the table.

public void AddRegistrationFail(OrderFail fail)

Parameters

fail OrderFail

Error.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

OnOrderAdded(Order)

The method is called when a new order added.

protected virtual void OnOrderAdded(Order order)

Parameters

order Order

Order.

RaiseSelectionChanged(GridSelectionChangedEventArgs)

Raise SelectedOrderChanged event.

protected override void RaiseSelectionChanged(GridSelectionChangedEventArgs e)

Parameters

e GridSelectionChangedEventArgs

Events

OrderCanceling

The selected order cancel event.

public event Action<Order> OrderCanceling

Event Type

Action<Order>

OrderReRegistering

The order re-registration event.

public event Action<Order> OrderReRegistering

Event Type

Action<Order>

OrderRegistering

The order registration event.

public event Action OrderRegistering

Event Type

Action

OrdersCanceling

The selected orders cancel event.

public event Action<IEnumerable<Order>> OrdersCanceling

Event Type

Action<IEnumerable<Order>>

SelectedOrderChanged

Selected order changed.

public event Action SelectedOrderChanged

Event Type

Action