Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormUserInsert formUserInsert = new FormUserInsert();

            formUserInsert.ShowDialog();
            FormUserManage_Load(sender, e);
        }
Example #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (dgvInfo.RowCount > 0)
            {
                FormUserInsert formUserInsert = new FormUserInsert();
                formUserInsert.op     = "Edit";
                formUserInsert.UserID = Convert.ToString(dgvInfo[0, dgvInfo.CurrentCell.RowIndex].Value).Trim();
                formUserInsert.Text   = "修改用户信息";

                formUserInsert.ShowDialog();
                FormUserManage_Load(sender, e);
            }
        }