示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserAddModify frm = new UserAddModify(this);

            frm.id = 0;
            frm.ShowDialog();
        }
示例#2
0
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (flx.Rows.Count > 1)
     {
         UserAddModify frm = new UserAddModify(this);
         frm.id = Convert.ToInt32(flx[flx.RowSel, "userID"]);
         frm.ShowDialog();
     }
     else
     {
         Box.warnBox("Please select a row.");
     }
 }