Exemplo n.º 1
0
        private void ModifyTeamMnBtn_Click(object sender, EventArgs e)
        {
            YouAreHere(ModifyTeamMnBtn);

            SelectedCourseLabel.Hide();
            CoursesList.Hide();
            SelectCourseBtn.Hide();
            ProjectGroupBox.Hide();
            ProjectList.Hide();
            GradeList.Hide();
            GradeGroupBox.Hide();


            TeamList.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top);
            TeamGroupBox.Show();
            TeamList.Show();
            TeamGroupBox.Location = new Point(550, 12);
            TeamList.Location     = new Point(150, 12);



            RefreshList();
            ClearAllBoxes();
            EnableViewLists();
            ChangeBtnNames();
        }
Exemplo n.º 2
0
        public ProfessorForm()
        {
            InitializeComponent();



            //Project List:A list that displays the professor's projects
            ProjectList.Bounds        = new Rectangle(new Point(150, 12), new Size(250, 500));
            ProjectList.View          = View.Details;
            ProjectList.FullRowSelect = true;
            ProjectList.GridLines     = true;
            ProjectList.Sorting       = SortOrder.Ascending;
            ProjectList.Columns.Add("Project Name", -2, HorizontalAlignment.Left);
            ProjectList.Columns.Add("Max Grade", -2, HorizontalAlignment.Left);
            //==========================================================================


            //Students List: A list that displays each teams infos
            StudentsList.Bounds        = new Rectangle(new Point(150, 12), new Size(375, 500));
            StudentsList.View          = View.Details;
            StudentsList.FullRowSelect = true;
            StudentsList.GridLines     = true;
            StudentsList.Sorting       = SortOrder.Ascending;
            StudentsList.Columns.Add("Team", -2, HorizontalAlignment.Left);
            StudentsList.Columns.Add("Registration Number", -2, HorizontalAlignment.Left);
            StudentsList.Columns.Add("Email", -2, HorizontalAlignment.Left);
            //=============================================================================


            //Grade List: A list that displays the team with its project an the grade
            GradeList.Bounds        = new Rectangle(new Point(150, 12), new Size(275, 500));
            GradeList.View          = View.Details;
            GradeList.FullRowSelect = true;
            GradeList.GridLines     = true;
            GradeList.Sorting       = SortOrder.Ascending;
            GradeList.Columns.Add("Team", -2, HorizontalAlignment.Left);
            GradeList.Columns.Add("Project", -2, HorizontalAlignment.Left);
            GradeList.Columns.Add("Grade", -2, HorizontalAlignment.Left);
            //==============================================================================



            TeamGroupBox.Text    = "";
            ProjectGroupBox.Text = "";
            GradeGroupBox.Text   = "";

            TeamGroupBox.Bounds = new Rectangle(new Point(550, 12), new Size(320, 320));

            TeamGroupBox.Show();
            StudentsList.Show();

            GradeList.Hide();
            GradeGroupBox.Hide();
            AssignToWhomLabel.Hide();
            AssignProjectBtn.Hide();
            ProjectGroupBox.Hide();
            ProjectList.Hide();
        }
Exemplo n.º 3
0
        private void ModifyTeamMnBtn_Click(object sender, EventArgs e)
        {
            ProjectGroupBox.Hide();
            ProjectList.Hide();
            GradeList.Hide();
            AssignToWhomLabel.Hide();
            AssignProjectBtn.Hide();
            GradeGroupBox.Hide();


            StudentsList.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Top);
            TeamGroupBox.Show();
            StudentsList.Show();
            TeamGroupBox.Location = new Point(550, 12);
            StudentsList.Location = new Point(150, 12);
        }