private void toolStripButtonMod_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count != 0) { NewAssDlg dlg = new NewAssDlg(mf, dataGridView1); dlg.sOptType = "��"; dlg.ShowDialog(); if (dlg.bDone) { resetData(); } } else { MessageBox.Show("����ѡ��һ�����ϣ�", "��ʾ", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }
private void toolStripButtonCopy_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count != 0) { NewAssDlg dlg = new NewAssDlg(mf, dataGridView1); dlg.sOptType = "����"; dlg.ShowDialog(); if (dlg.bDone) { resetData(); bs.MoveLast(); } } }