Exemplo n.º 1
0
        private void add0_Click(object sender, EventArgs e)
        {
            Assessment assess = new Assessment(module);

            assess.ShowDialog();
            module = assess.module;


            foreach (var item in module.Assessments)
            {
                string[] arr = new string[6];
                arr[0] = item.AssessmentName;
                arr[1] = item.AssessmentWeight;
                arr[2] = item.AssessmentGrade;

                arr[3] = item.AssessmentName2;
                arr[4] = item.AssessmentWeight2;
                arr[5] = item.AssessmentGrade2;

                ListViewItem itm = new ListViewItem(arr);
                listView1.Items.Add(itm);

                assess1.AssessmentName   = item.AssessmentName;
                assess1.AssessmentWeight = item.AssessmentWeight;
                assess1.AssessmentGrade  = item.AssessmentGrade;

                assess1.AssessmentName2   = item.AssessmentName2;
                assess1.AssessmentWeight2 = item.AssessmentWeight2;
                assess1.AssessmentGrade2  = item.AssessmentGrade2;

                assess2.AssessmentName   = item.AssessmentName;
                assess2.AssessmentWeight = item.AssessmentWeight;
                assess2.AssessmentGrade  = item.AssessmentGrade;

                assess2.AssessmentName2   = item.AssessmentName2;
                assess2.AssessmentWeight2 = item.AssessmentWeight2;
                assess2.AssessmentGrade2  = item.AssessmentGrade2;

                assess3.AssessmentName   = item.AssessmentName;
                assess3.AssessmentWeight = item.AssessmentWeight;
                assess3.AssessmentGrade  = item.AssessmentGrade;

                assess3.AssessmentName2   = item.AssessmentName2;
                assess3.AssessmentWeight2 = item.AssessmentWeight2;
                assess3.AssessmentGrade2  = item.AssessmentGrade2;
            }
        }
Exemplo n.º 2
0
        public Module(CourseClass courses)
        {
            InitializeComponent();

            //Start Page
            tab1.Enabled = false;
            tab2.Enabled = false;
            tab3.Enabled = false;

            lvl4sum.Enabled = false;
            lvl5sum.Enabled = false;
            lvl6sum.Enabled = false;

            button2.Enabled = false;
            button3.Enabled = false;
            button7.Enabled = false;

            course = courses;

            modulesList  = new List <ModuleClass>();
            modulesList2 = new List <ModuleClass>();
            modulesList3 = new List <ModuleClass>();

            module  = new ModuleClass();
            module2 = new ModuleClass();
            module3 = new ModuleClass();

            assessmentList  = new List <AssessmentClass>();
            assessmentList2 = new List <AssessmentClass>();
            assessmentList3 = new List <AssessmentClass>();

            assess1 = new AssessmentClass();
            assess2 = new AssessmentClass();
            assess3 = new AssessmentClass();

            module.Assessments  = assessmentList;
            module2.Assessments = assessmentList2;
            module3.Assessments = assessmentList3;

            course.Modules = modulesList;
            course.Modules = modulesList2;
            course.Modules = modulesList3;

            label5.Text = "";
            label7.Text = "";
            label8.Text = "";
        }
Exemplo n.º 3
0
        //TextBox textbox7;
        //TextBox textbox8;
        //TextBox textbox9;

        public Assessment(ModuleClass modules)
        {
            InitializeComponent();
            module = modules;
        }