Пример #1
0
        public void RowChanged(int row)
        {
            // instructor
            if (security_level == 1)
            {
                if (sub_state == 0) // section
                {
                    current_section = section_view.GetRow(row);

                    if (current_section != null)
                    {
                        main_form.sectionLink.Text = current_section.ToString();
                    }
                    else
                    {
                        main_form.sectionLink.Text = "";
                    }
                }
                else if (sub_state == 2) // assignment
                {
                    current_assign = inst_assign_view.GetRow(row);

                    if (current_assign != null)
                    {
                        main_form.assignLink.Text = current_assign.ToString();
                    }
                    else
                    {
                        main_form.assignLink.Text = "";
                    }
                }

                UpdateState();
            }
        }
Пример #2
0
        public void RowChanged(int row)
        {
            // instructor
            if (security_level == 1)
            {
                if (sub_state == 0) // section
                {
                    current_section = section_view.GetRow(row);

                    if(current_section != null)
                        main_form.sectionLink.Text = current_section.ToString();
                    else
                        main_form.sectionLink.Text = "";
                }
                else if (sub_state == 2) // assignment
                {
                    current_assign = inst_assign_view.GetRow(row);

                    if (current_assign != null)
                        main_form.assignLink.Text = current_assign.ToString();
                    else
                        main_form.assignLink.Text = "";
                }

                UpdateState();
            }
        }