private void bt_transfert_Click(object sender, EventArgs e) { bt_transfert.Enabled = false; bw_transfert.RunWorkerAsync(); dgv_transfert.DataSource = TransfertsService.getTransferts(); }
private void bw_transfert_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { bt_transfert.Enabled = true; dgv_transfert.DataSource = TransfertsService.getTransferts(); ControlerClientService.arreterTransfert(); }
//Initialise la DATAGRID private void InitialiserListeTransfert() { dgv_transfert.DataSource = TransfertsService.getTransferts(); dgv_transfert.SelectionMode = DataGridViewSelectionMode.FullRowSelect; }