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

            formUserInsert.ShowDialog();
            FormUserManage_Load(sender, e);
        }
예제 #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);
            }
        }