//---------------------------------------- public void Store(string key, string type, Object objValue) { string value = CheckNullObject(objValue, "STORE"); XmlManager xmlWorker = new XmlManager(); try { xmlWorker.XmlWrite(key, type, value); reportResults( "Store Value", "Store Value command passed.", LogLevel.Success ); } catch (Exception e) { reportResults( true, "Store Value", "Store Value command failed. Cannot access project_data.xml. Actual Error: " + e.Message, LogLevel.Error, e.StackTrace); } CheckStoreValueType(type, value); }
public void WriteToReport(Object objMessage) { string message = CheckNullObject(objMessage, "WRITE TO REPORT"); XmlManager xmlWorker = new XmlManager(); try { xmlWorker.XmlReport(objMessage); reportResults( "Write to Report", "Write to Report command passed.", LogLevel.Success ); } catch (Exception e) { reportResults( true, "Write to Report", "Write to Report command failed. report.xml is not accessible.", LogLevel.Error, e.StackTrace); } }
public string Retrieve(string key, string type) { XmlManager xmlWorker = new XmlManager(); try { string value = xmlWorker.XmlRead(key, type); reportResults( "Store Value", "Store Value command passed.", LogLevel.Success ); return value; } catch (FileNotFoundException fileNotFoundE) { reportResults( true, "Store Value", "Store Value command failed. Cannot access project_data.xml. Actual Error: " + fileNotFoundE.Message, LogLevel.Error, fileNotFoundE.StackTrace); } return null; }