public WDBSQLite(string Path, string UI, WDBTraceLog.TraceLog WDBTraceLogObj) { SQLFile = Path; WDBTraceLogObj.WriteToLog(ThreadName, ObjectName, GetCurrentMethod(), "Start Call: WDBSQLite()"); this.TraceLogObj = WDBTraceLogObj; if (!File.Exists(Path)) { TraceLogObj.WriteToLog(_ThreadName, ObjectName, GetCurrentMethod(), "Start of Create SQLite DB. " + Path); if (UI.ToLower() == "client") { this.conn = CreateClientDB(Path); } else if (UI.ToLower() == "uploader") { this.conn = CreateUploadDB(Path); } TraceLogObj.WriteToLog(_ThreadName, ObjectName, GetCurrentMethod(), "End of Create SQLite DB." + Path); } else { TraceLogObj.WriteToLog(_ThreadName, ObjectName, GetCurrentMethod(), "SQLite data source=" + Path); conn = new SQLiteConnection("data source=" + Path); conn.Open(); } TraceLogObj.WriteToLog(ThreadName, ObjectName, GetCurrentMethod(), "End Call: WDBSQLite()"); }
public WDBCommon(WDBSQLite.WDBSQLite ArgWDBSQliteObj, WDBAPI.WDBAPI WDBAPIObj, WDBTraceLog.TraceLog WDBTraceLogObj) { WDBTraceLogObj.WriteToLog(_ThreadName, ObjectName, GetCurrentMethod(), "Start Call: WDBCommon()"); this.WDBAPIObj = WDBAPIObj; TraceLogObj = WDBTraceLogObj; WDBSQLiteObj = ArgWDBSQliteObj; TraceLogObj.WriteToLog(_ThreadName, ObjectName, GetCurrentMethod(), "Start Call: WDBCommon()"); }
public WdbClientForm() { InitializeComponent(); //// These need to be replaced with registrty keys to be loaded by the client. Will be done once v1.0 of the Uploader is done. string LogPath = ".\\Logs\\"; bool TraceLogEnable = false; bool PerRunRotate = true; TraceLogObj = new WDBTraceLog.TraceLog(LogPath, TraceLogEnable, PerRunRotate); listView1.View = View.Details; WDBAPIObj = new WDBAPI.WDBAPI(TraceLogObj); string[] row = { "1", "Pferland", "Test Import", "2016-01-05", "248.02kb", "WDB_Upload_20160105.vs1", "DUMMYHASHSUM", "N/A", "Not Importing" }; var listViewItem = new ListViewItem(row); listView1.Items.Add(listViewItem); }
public WDBAPI(WDBTraceLog.TraceLog WDBTraceLogObj) { this.TraceLogObj = WDBTraceLogObj; }