private void ProcessPendingOrder(OrderTask orderTask, CellDataDefine currentCellData)
 {
     HandleAction actionType = currentCellData.Action;
     bool isEnabled;
     switch (actionType)
     {
         case HandleAction.None:
             break;
         case HandleAction.OnOrderAccept:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this.OrderHandle.OnOrderAccept(orderTask); // DQ Order Accept
             }
             break;
         case HandleAction.OnOrderReject:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this.OrderHandle.OnOrderReject(orderTask);
             }
             break;
     }
 }
 internal void CreateCellDataDefine()
 {
     this._ExecuteAllCellDataDefine = new CellDataDefine();
     this._ExecuteAllCellDataDefine = new CellDataDefine();
     this._ExecuteAllCellDataDefine.Action = HandleAction.OnOrderAccept;
     this._ExecuteAllCellDataDefine.IsEnable = true;
     this._ExecuteAllCellDataDefine.IsVisibility = System.Windows.Visibility.Visible;
 }
 private void ProcessPendingOrder(OrderTask orderTask, CellDataDefine currentCellData)
 {
     HandleAction actionType = currentCellData.Action;
     bool isEnabled;
     switch (actionType)
     {
         case HandleAction.None:
             break;
         case HandleAction.OnOrderAccept:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this._App.OrderHandle.OnOrderAccept(orderTask);
             }
             break;
         case HandleAction.OnOrderReject:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this._App.OrderHandle.OnOrderReject(orderTask);
             }
             break;
         case HandleAction.OnOrderDetail:
             //OnOrderDetail(row);
             break;
         case HandleAction.OnOrderAcceptPlace:
             this._App.OrderHandle.OnOrderAcceptPlace(orderTask);
             break;
         case HandleAction.OnOrderRejectPlace:
             this._App.OrderHandle.OnOrderRejectPlace(orderTask);
             break;
         case HandleAction.OnOrderAcceptCancel:
             //OnOrderAcceptCancel(row);
             break;
         case HandleAction.OnOrderRejectCancel:
             //OnOrderRejectCancel(row);
             break;
         case HandleAction.OnOrderUpdate:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this._App.OrderHandle.OnOrderUpdate(orderTask,this._ProcessLmtOrder.LmtOrderForInstrument);
             }
             break;
         case HandleAction.OnOrderModify:
             isEnabled = currentCellData.IsEnable;
             if (isEnabled)
             {
                 this._App.OrderHandle.OnOrderModify(orderTask,this._ProcessLmtOrder.LmtOrderForInstrument.Origin);
             }
             break;
         case HandleAction.OnOrderWait:
             this._App.OrderHandle.OnOrderWait(orderTask);
             break;
         case HandleAction.OnOrderExecute:
             this._App.OrderHandle.OnOrderExecute(orderTask);
             break;
         case HandleAction.OnOrderCancel:
             this._App.OrderHandle.OnOrderCancel(orderTask);
             break;
     }
 }