//-------------------------------------------------------------------------------------------------// public virtual void Create() { const string STRLOG_MethodName = "Create"; Logfile.WriteCalled(this.logLevel, STRLOG_ClassName, STRLOG_MethodName); // // Create an instance of lab equipment engine // this.labEquipmentEngine = new LabEquipmentEngine(this.rootFilePath); Logfile.WriteCompleted(this.logLevel, STRLOG_ClassName, STRLOG_MethodName); }
//---------------------------------------------------------------------------------------// /// <summary> /// /// </summary> /// <returns>bool</returns> public virtual bool Create() { const string methodName = "Create"; Logfile.WriteCalled(Logfile.Level.Info, STR_ClassName, methodName); bool success = false; try { /* * Create an instance of the lab equipment engine */ this.labEquipmentEngine = new LabEquipmentEngine(this.labEquipmentConfiguration); if (this.labEquipmentEngine == null) { throw new ArgumentNullException(LabEquipmentEngine.ClassName); } success = true; } catch (Exception ex) { Logfile.WriteError(STR_ClassName, methodName, ex.Message); } Logfile.WriteCompleted(Logfile.Level.Info, STR_ClassName, methodName); return success; }