Beispiel #1
0
        private void btnZPAlter_Click(object sender, EventArgs e)
        {
            if (gvZP.SelectedRows.Count == 0)
            {
                ShowMsg("请选择设备!");
                return;
            }
            DataGridViewRow gvr = gvZP.SelectedRows[0];

            frmZPEdit frm = new frmZPEdit();
            frm.Owner = this;
            frm.DeviceID = gvr.Cells[0].Value.ToString();
            frm.ShowDialog();
            if (frm.IsOK)
            {
                BindZP();
            }
        }
Beispiel #2
0
 private void btnZPADD_Click(object sender, EventArgs e)
 {
     frmZPEdit frm = new frmZPEdit();
     frm.Owner = this;
     frm.opType = "add";
     frm.ShowDialog();
     if (frm.IsOK)
     {
         BindZP();
     }
 }