/*private void FrmAdmin_Click(object sender, EventArgs e) * { * if (this.BackColor == Color.Red) * this.BackColor = Color.Yellow; * else if (this.BackColor == Color.Yellow) * this.BackColor = Color.Green; * else if (this.BackColor == Color.Green) * this.BackColor = Color.Red; * * }*/ private void btnAddStu_Click(object sender, EventArgs e) { FrmAddStu frmAddStu = new FrmAddStu(); frmAddStu.Show(); this.Hide(); }
private void tsNewStu_Click(object sender, EventArgs e) { FrmAddStu frmAddStu = new FrmAddStu(); frmAddStu.MdiParent = this; frmAddStu.Show(); }
private void tsmiEditStu_Click(object sender, EventArgs e) { FrmAddStu frmAddStu = new FrmAddStu(); frmAddStu.StudentNo = Convert.ToString(listStu.SelectedItems[0].Text.ToString()); frmAddStu.MdiParent = this.MdiParent; frmAddStu.Show(); }