Ejemplo n.º 1
0
        public ModuleDetailView(Module module)
        {
            this.module = module;
            InitializeComponent();

            nameLabel.Text = module.name;
            codeLabel.Text = module.code;
            yearLabel.Text = module.year.ToString();
            creditsLabel.Text = module.credits.ToString();

            assessmentTable.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
            assessmentTable.RowHeadersVisible = false;
            assessmentTable.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            assessmentTable.MultiSelect = false;
            assessmentTable.AllowUserToAddRows = false;
            assessmentTable.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            initialiseTableData();
        }
Ejemplo n.º 2
0
        public void newModuleCreated(Module module)
        {
            year1TabPage.Controls.Remove(addEditModView);
            switch (module.year)
            {
                case 1:
                    year1Table.reloadData();
                    break;

                case 2:
                    year2Table.reloadData();
                    break;

                case 3:
                    year3Table.reloadData();
                    break;

                default:
                    break;
            }
            year1Table.reloadData();
        }
Ejemplo n.º 3
0
 public AddEditAssessment(AddEditAssessmentDelegate aDelegate, Module module)
 {
     InitializeComponent();
     this.del = new WeakReference<AddEditAssessmentDelegate>(aDelegate);
     this.module = module;
 }