Пример #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            FacultyHome facultyWindow = new FacultyHome(User, this);

            facultyWindow.Show();
            this.Hide();
        }
Пример #2
0
        private void button7_Click(object sender, EventArgs e)
        {
            userstruct facultyToView = new userstruct();

            facultyToView.username = listBox1.SelectedItem.ToString();

            FacultyHome facultyWindow = new FacultyHome(facultyToView, this, true);

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