private void taoToolStripMenuItem_Click(object sender, EventArgs e) { DC1.tenhs = Connect.GetStr(grvKQ.GetFocusedRowCellValue(colmshs)); Form frm = new Forms.ThoaiKX.ThoaiTest(); frm.ShowDialog(); }
private void inBiểuĐồDinhToolStripMenuItem_Click(object sender, EventArgs e) { if (Modules.DC1.iform == 1) { Modules.DC1.iform = 2; Form frm = new Forms.ThoaiKX.ThoaiTest(); frm.MdiParent = this; frm.Show(); } else { MessageBox.Show("Bạn cần đóng form hiện tại!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }