public ThreadManager() { //dbWriter = new DbWriter(); wsWriter = new WSwriter(); functions = new Functions(); functions.GetMachineData(); //dbWriter.WriteMachine(functions); wsWriter.WsMachine(functions); this.thread = new Thread(FunctionTest); }
public void ThreadManagerStart() { if (!this.thread.IsAlive) { wsWriter = new WSwriter(); functions = new Functions(); functions.GetMachineData(); wsWriter.WsMachine(functions); this.thread = new Thread(FunctionTest); this.thread.Start(); } }