Пример #1
0
 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()");
 }
Пример #2
0
 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()");
 }
Пример #3
0
 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()");
 }
Пример #4
0
 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()");
 }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
 public WDBAPI(WDBTraceLog.TraceLog WDBTraceLogObj)
 {
     this.TraceLogObj = WDBTraceLogObj;
 }
Пример #8
0
 public WDBAPI(WDBTraceLog.TraceLog WDBTraceLogObj)
 {
     this.TraceLogObj = WDBTraceLogObj;
 }