private void UnsubscribeAllAOrdersTable(List <string> StrategyNames)
 {
     foreach (Strategy CurStrategy in StrategiesList.Values)
     {
         if (StrategyNames.Contains(CurStrategy.Param.StrategyName))
         {
             CurStrategy.ChangeActiveOrders -= AOrdersTable.OnUpdateActiveOrders;
         }
     }
     AOrdersTable = null;
 }
 public void ShowOrdersTable(System.Windows.Forms.Form WinForm)
 {
     if (AOrdersTable != null)
     {
         return;
     }
     AOrdersTable = new ActiveOrdersTableGrid(GetPositionStates, ForcefullyStopStrategy, UnsubscribeAllAOrdersTable);
     foreach (Strategy CurStrategy in StrategiesList.Values)
     {
         if (CurStrategy.State.IsStartegyRun)
         {
             SubscribeAOrdersTable(CurStrategy);
         }
     }
     AOrdersTable.Show(WinForm);
 }