private async void buttonX13_Click(object sender, EventArgs e) { this.Enabled = false; List <int> sfe = new List <int>(); for (int i = 0; i < dataGridViewX1.Rows.Count; i++) { sfe.Add(Convert.ToInt32(dataGridViewX1.Rows[i].Cells[0].Value)); } GetDateByID GetDateByID = null; await Task.Run(() => { GetDateByID = new GetDateByID(sfe); } ); GetDateByID.ShowDialog(); this.Enabled = true; }
private async void buttonX13_Click(object sender, EventArgs e) { this.Enabled = false; List <int> sfe = new List <int>(); for (int i = 0; i < CouressList.Count; i++) { sfe.Add(CouressList[i].Id_Information); } GetDateByID GetDateByID = null; await Task.Run(() => { GetDateByID = new GetDateByID(sfe); } ); GetDateByID.ShowDialog(); this.Enabled = true; }
private void buttonX11_Click(object sender, EventArgs e) { GetDateByID GetDateByID = new GetDateByID(); GetDateByID.ShowDialog(); }