예제 #1
0
        private void BackButton_Click(object sender, EventArgs e)
        {
            UserDetailsForm userForm = new UserDetailsForm(user);

            userForm.TopLevel   = false;
            userForm.AutoScroll = true;
            this.Hide();
            ((Button)sender).Parent.Parent.Controls.Add(userForm);
            userForm.Show();
        }
예제 #2
0
        private void UserList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (UserList.SelectedItem == null)
            {
                return;
            }
            ListBox         lb       = (ListBox)sender;
            string          username = lb.SelectedItem.ToString();
            User            user     = UserService.GetUser(username);
            UserDetailsForm userForm = new UserDetailsForm(user);

            userForm.TopLevel   = false;
            userForm.AutoScroll = true;
            this.Hide();
            ((ListBox)sender).Parent.Parent.Controls.Add(userForm);
            userForm.Show();
        }