private void btn_Hopdong_Click(object sender, EventArgs e) { SetbtnColor(sender as Button); if (!CheckExistForm("Form_Hopdong")) { Hopdong.MdiParent = this; Hopdong.StartPosition = FormStartPosition.Manual; Hopdong.Width = 1156; Hopdong.Height = 802; Hopdong.Show(); } else { ActiveChildForm("Form_Hopdong"); } }
private void btn_Thongtin_Click(object sender, EventArgs e) { SetbtnColor(sender as Button); if (!CheckExistForm("Form_Thongtin")) { Form_Hopdong f = new Form_Hopdong(); f.MdiParent = this; f.StartPosition = FormStartPosition.Manual; f.Width = 1156; f.Height = 802; f.Show(); } else { ActiveChildForm("Form_Thongtin"); } }