public table_module() { //<temp> setSection("BSCS 2"); //</temp> InitializeComponent(); table_module_day[] tbl_day = new table_module_day[6]; for (int i = 0; i < 6; i++) { tbl_day[i] = new table_module_day(); string day = ""; switch (i) { case 0: day = "Saturday"; break; case 1: day = "Friday"; break; case 2: day = "Thursday"; break; case 3: day = "Wednesday"; break; case 4: day = "Tuesday"; break; case 5: day = "Monday"; break; } tbl_day[i].setDay(day); tbl_day[i].setPanelname(section); tbl_day[i].setSection("2"); tbl_day[i].Dock = DockStyle.Left; this.table_container.Controls.Add(tbl_day[i]); tbl_day[i].addClass(); } }
public void setParet(table_module_day value) { parent = value; parent.triggerDispose += switchDispose; }