public Form_QuanLy(taikhoan tk) { InitializeComponent(); this.tk = tk; Form_ChoThue ChoThue = new Form_ChoThue(); Form_Dichvu Dichvu = new Form_Dichvu(this.tk); Form_Hopdong Hopdong = new Form_Hopdong(); Form_Nhanvien Nhanvien = new Form_Nhanvien(); Form_Canho Canho = new Form_Canho(); Form_Thongtin Thongtin = new Form_Thongtin(); }
private void btn_Thongtin_Click(object sender, EventArgs e) { SetbtnColor(sender as Button); if (!CheckExistForm("Form_Thongtin")) { Form_Thongtin f = new Form_Thongtin(); f.MdiParent = this; f.StartPosition = FormStartPosition.Manual; f.Width = 1156; f.Height = 802; f.Show(); } else { ActiveChildForm("Form_Thongtin"); } }