Exemplo n.º 1
0
 private void toolStripButtonAdd_Click(object sender, EventArgs e)
 {
     NewAddrDlg dlg = new NewAddrDlg(dataGridView1);
     dlg.sOptType = "����";
     dlg.ShowDialog();
     if (dlg.bDone)
     {
         resetData();
         bs.MoveLast();
     }
 }
Exemplo n.º 2
0
 private void toolStripButtonMod_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count != 0)
     {
         NewAddrDlg dlg = new NewAddrDlg(dataGridView1);
         dlg.sOptType = "�޸�";
         dlg.ShowDialog();
         if (dlg.bDone)
         {
             resetData();
         }
     }
     else
     {
         MessageBox.Show("����ѡ��һ�����ϣ�", "��ʾ", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }