public StudentScore() { InitializeComponent(); SC_List List = new SC_List(); List.Owner = this; }
private void StudentScore_Load(object sender, EventArgs e) { ChangeLanguage(); btnEdit.Enabled = false; // btnDelete.Enabled = false; SC_List List = new SC_List(); List.Owner = this; List.TopLevel = false; List.AutoScroll = true; pnSScore.Controls.Add(List); List.Show(); }
private void btnDelete_Click(object sender, EventArgs e) { //StudentScoreDB.Delete(); //refresh pnSScore.Controls.Clear(); SC_List List = new SC_List(); List.Owner = this; List.TopLevel = false; List.AutoScroll = true; pnSScore.Controls.Add(List); List.Show(); }
public void btnList_Click(object sender, EventArgs e) { //btnDelete.Enabled = false; btnEdit.Enabled = false; DetectColorButton(1); pnSScore.Controls.Clear(); SC_List List = new SC_List(); List.Owner = this; List.TopLevel = false; List.AutoScroll = true; pnSScore.Controls.Add(List); List.Show(); }