private void barButtonItem_QuyetDinh_ItemClick(object sender, ItemClickEventArgs e) { if (formQuyetDinh == null) { formQuyetDinh = new F_Main_QuyetDinh(); formQuyetDinh.MdiParent = this; formQuyetDinh.FormClosed += new FormClosedEventHandler(formQuyetDinh_FormClosed); formQuyetDinh.Show(); } else { formQuyetDinh.Activate(); } }
void formQuyetDinh_FormClosed(object sender, FormClosedEventArgs e) { formQuyetDinh = null; }