public void InitControl(IExtractPanel panel, ArgumentBase arg) { if (panel == null) { return; } UCExtractPanel ucPanel = panel as UCExtractPanel; if (ucPanel == null) { return; } IMonitoringSubProduct subProduct = ucPanel.MonitoringSubProduct; if (subProduct == null) { return; } IArgumentProvider arp = subProduct.ArgumentProvider; if (arp != null) { if (arp.DataProvider != null) { _dataProvider = arp.DataProvider; } object obj = arp.GetArg("SmartSession"); if (obj != null) { ISmartSession session = obj as ISmartSession; _progress = session.ProgressMonitorManager; } } InitArgument(); }
public SmartSession(ISmartWindowManager smartWindowManager) { _smartWindowManager = smartWindowManager; _commandEnvironment = new CommandEnvironment(this); _configer = new Configer(); _progressMonitorManager = new ProgressMonitorManager(smartWindowManager.MainForm as Form); _recentFilesManager = new RecentFilesManager(20); _temporalFileManager = new TemporalFileManager(); AttachEvents(); CreatePythonEngine(); CreateMonitoringSession(); }