public bool BindProject() { try { GeneralProjectEntity currentProject = ProjectSingleton.CurrentProject as GeneralProjectEntity; this.LoadProject(currentProject); if (null != this.m_MainFormUIManager.MainForm.AutoTestManager.AutoTestSubSys) { IAutoTestFunction autoTestSubSys = this.m_MainFormUIManager.MainForm.AutoTestManager.AutoTestSubSys as IAutoTestFunction; } this.m_MainFormUIManager.MainForm.MapProject.Add(currentProject.MainForm, currentProject); this.m_MainFormUIManager.MainForm.DockContent = currentProject.MainForm; currentProject.MainForm.Show(this.m_MainFormUIManager.MainForm.DockPanelInstance, DockState.Document); currentProject.DockPanel = this.m_MainFormUIManager.MainForm.DockPanelInstance; IAutoTestExcelProcess service = new XlsDataManager(); currentProject.AppContext.RegisterService(service); currentProject.AppContext.RegisterService(ProjectFileManager.Instance()); } catch (Exception exception) { WriteLog.Logger.Error(exception.StackTrace); } return true; }
public bool BindProject() { try { GeneralProjectEntity currentProject = ProjectSingleton.CurrentProject as GeneralProjectEntity; this.LoadProject(currentProject); if (null != this.m_MainFormUIManager.MainForm.AutoTestManager.AutoTestSubSys) { IAutoTestFunction autoTestSubSys = this.m_MainFormUIManager.MainForm.AutoTestManager.AutoTestSubSys as IAutoTestFunction; } this.m_MainFormUIManager.MainForm.MapProject.Add(currentProject.MainForm, currentProject); this.m_MainFormUIManager.MainForm.DockContent = currentProject.MainForm; currentProject.MainForm.Show(this.m_MainFormUIManager.MainForm.DockPanelInstance, DockState.Document); currentProject.DockPanel = this.m_MainFormUIManager.MainForm.DockPanelInstance; IAutoTestExcelProcess service = new XlsDataManager(); currentProject.AppContext.RegisterService(service); currentProject.AppContext.RegisterService(ProjectFileManager.Instance()); } catch (Exception exception) { WriteLog.Logger.Error(exception.StackTrace); } return(true); }