private void button1_Click(object sender, EventArgs e) { //调用窗体 LeiXing frm = new LeiXing(); frm.ID = ""; frm.ShowDialog(); GetDate(); }
private void button2_Click(object sender, EventArgs e) { //调用窗体 if (this.dataGridView1.SelectedRows.Count <= 0) { return; } LeiXing frm = new LeiXing(); frm.ID = this.dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); frm.ShowDialog(); GetDate(); }