public void ExecuteDownloadCommand(object parameter) { worker = new ClientTcpWorker(5050, "::1"); if (_selectedIndex != -1) { Task.Factory.StartNew(() => worker.SendIdDict(DataBaseInfo.Rows[_selectedIndex].ItemArray[0].ToString())); } }
public void ExecuteUploadCommand(object parameter) { OpenFileDialog opd = new OpenFileDialog(); if (DialogResult.OK == opd.ShowDialog()) { worker = new ClientTcpWorker(5050, "::1"); Task.Factory.StartNew(() => worker.SendFileDict(opd.FileName)); } }
public void ExecuteUploadCommand(object parameter) { OpenFileDialog opd = new OpenFileDialog(); if (DialogResult.OK == opd.ShowDialog()) { ClientTcpWorker rm = new ClientTcpWorker(5050, "::1"); Mthd mthd = rm.SendFileDict; Paralel(mthd,opd.FileName); } }
public void ExecuteRefreshCommand(object parameter) { worker = new ClientTcpWorker(5050, "::1"); try { _dataTable = Task.Factory.StartNew(worker.RecieveDatabaseTable).Result; } catch (Exception e) { MessageBox.Show($"Не удалось обновить таблицу " + $"Error: {e.Message}"); } }
public void ExecuteDownloadCommand(object parameter) { worker = new ClientTcpWorker(5050, "::1"); if (_selectedIndex != -1) { Task.Factory.StartNew(() => worker.SendIdDict(DataBaseInfo.Rows[_selectedIndex].ItemArray[0].ToString())); } }
public void ExecuteUploadCommand(object parameter) { OpenFileDialog opd = new OpenFileDialog(); if (DialogResult.OK == opd.ShowDialog()) { worker = new ClientTcpWorker(5050, "::1"); Task.Factory.StartNew(() => worker.SendFileDict(opd.FileName)); } }
public void ExecuteRefreshCommand(object parameter) { worker = new ClientTcpWorker(5050, "::1"); try { _dataTable = Task.Factory.StartNew(worker.RecieveDatabaseTable).Result; } catch (Exception e) { MessageBox.Show($"Не удалось обновить таблицу " + $"Error: {e.Message}"); } }