public void Start() { if (WorkerProcessType == null) { MessageBox.Show("ViewWorkersFarm.WorkerProcess property cannot be NULL!"); return; } WorkerProcess = (WorkerProcess)Activator.CreateInstance(WorkerProcessType); db = WorkerProcess.GetNewDatabaseInstance(); // ensure tables existance db.Read(WorkerProcess.GetQueueDataType(), 1); db.Read(WorkerProcess.GetQueueType(), 1); db.Read(WorkerProcess.GetWorkerType(), 1); db.ExecuteNonQuery("update Job set Status='New' where Status='Processing';"); refreshWorkers(true); running = true; }