public IMonitoringSubProduct ChangeActiveSubProduct(string identify)
 {
     _activeMonitoringSubProduct = null;
     if (_activeMonitoringProduct == null || string.IsNullOrEmpty(identify))
     {
         return(null);
     }
     foreach (IMonitoringSubProduct subprd in _activeMonitoringProduct.SubProducts)
     {
         if (subprd.Identify == identify)
         {
             _activeMonitoringSubProduct = subprd;
             break;
         }
     }
     if (ExtractPanelWidow != null)
     {
         ExtractPanelWidow.Apply(Workspace, _activeMonitoringSubProduct);
     }
     //by chennan 20130330 不明白做什么用
     //if (!_activeMonitoringSubProduct.Definition.IsDisplayPanel)
     //{
     //}
     return(_activeMonitoringSubProduct);
 }
 public void CanResetUserControl()
 {
     if (ExtractPanelWidow != null)
     {
         ExtractPanelWidow.CanResetUserControl();
     }
 }
 public IMonitoringProduct ChangeActiveProduct(string identify, bool isOpenWorkspace)
 {
     if (_activeMonitoringProduct != null && _activeMonitoringProduct.Identify == identify)
     {
         return(_activeMonitoringProduct);
     }
     _activeMonitoringProduct    = null;
     _activeMonitoringSubProduct = null;
     if (_monitoringProducts == null || _monitoringProducts.Length == 0)
     {
         if (isOpenWorkspace)
         {
             OpenAndFillWorkspace();
         }
         return(null);
     }
     foreach (MonitoringProduct prd in _monitoringProducts)
     {
         if (prd.Identify == identify)
         {
             _activeMonitoringProduct = prd;
             break;
         }
     }
     if (_activeMonitoringProduct == null)
     {
         _extractingSession.Stop();
         return(null);
     }
     if (isOpenWorkspace)
     {
         OpenAndFillWorkspace();
     }
     //
     if (_monitoringProductLoaded != null)
     {
         _monitoringProductLoaded(this, _activeMonitoringProduct);
     }
     //
     if (ExtractPanelWidow != null)
     {
         ExtractPanelWidow.Apply(Workspace, null);
     }
     OpenWndWithProductChanged();
     return(_activeMonitoringProduct);
 }