Пример #1
0
        private void userLabel_Click(object sender, EventArgs e)
        {
            UserProfileForm userProfileForm = new UserProfileForm(Username, Password);

            Hide();
            userProfileForm.Show();
        }
        private void pbxAdd_Click(object sender, EventArgs e)
        {
            UserProfileForm userProfileDetails = new UserProfileForm();

            userProfileDetails.Show();
            this.Hide();
        }
Пример #3
0
        private void userBtn_Click_1(object sender, EventArgs e)
        {
            UserProfileForm upf = new UserProfileForm(currentUser);

            upf.Show();
            this.Hide();
        }
Пример #4
0
        private void OpenUserProfileFormButton_Click(object sender, EventArgs e)
        {
            var frm = new UserProfileForm(UserProfile.Id);

            frm.Closed += (s, args) => this.Show();
            frm.Show();
            this.Hide();
        }
        private void pbxEdit_Click(object sender, EventArgs e)
        {
            int idUser = Int32.Parse(dgvUserProfile.SelectedRows[0].Cells[0].Value.ToString());

            UserProfileForm userProfileDetailsForm = new UserProfileForm(idUser);

            userProfileDetailsForm.Show();

            this.Close();
        }