public ComputerInTaskHandler(ExecutedTaskData _executedTaskData, List <ClientHandler> _clients, int _index, List <string> _ipAddresses, Semaphore _semaphoreFotSaveFile, ListView _listViewAll, ListView _listViewSelected) { step = "WAITING FO ACK"; semaphoreForTask.WaitOne(); this.executedTaskData = _executedTaskData; this.clients = _clients; this.index = _index; this.ipAddresses = _ipAddresses; this.taskData = executedTaskData.taskData; this.semaphoreForSaveFile = _semaphoreFotSaveFile; this.listViewAll = _listViewAll; this.listViewSelected = _listViewSelected; receivePacket = new Packet(DataIdentifier.CLOSE); computer = executedTaskData.taskData.TargetComputers[index]; }
public ComputerInTaskHandler(ExecutedTaskData _executedTaskData, int _index, List <string> _ipAddresses, Semaphore _semaphoreFotSaveFile, ListView _listViewAll, ListView _listViewSelected, List <string> _MailsTo) { try { step = "WAITING FOR ACK"; this.executedTaskData = _executedTaskData; this.index = _index; this.ipAddresses = _ipAddresses; this.taskData = executedTaskData._TaskData; this.semaphoreForSaveFile = _semaphoreFotSaveFile; this.listViewAll = _listViewAll; this.listViewSelected = _listViewSelected; this.MailsTo = _MailsTo; receivePacket = new Packet(FLAG.Null); computer = executedTaskData._TaskData.TargetComputers[index]; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }