this.Trader.NewOrders += orders => this.GuiAsync(() => { lock(myLock2) { _ordersWindow.Orders.AddRange(orders); } }); //GuiAsync
void CheckNewStrikeA1(double strike)
{
lock (myLock2)
{
A1_P_51(strike);
if (IsNewTrade() == false) //эта функция смотрит в _ordersWindow.Orders
return;
}
}