コード例 #1
0
        private void pbxAdd_Click(object sender, EventArgs e)
        {
            UserDetailsForm ud = new UserDetailsForm();

            ud.Show();
            this.Hide();
        }
コード例 #2
0
        private void pbxEdit_Click(object sender, EventArgs e)
        {
            int             idUser          = Int32.Parse(dgvUser.SelectedRows[0].Cells[0].Value.ToString());
            UserDetailsForm userDetailsForm = new UserDetailsForm(idUser);

            userDetailsForm.Show();
            this.Hide();
        }