private void btnNCC_Click(object sender, EventArgs e) { NCC f7 = new NCC(); f7.ShowDialog(); this.Hide(); }
private void btnThem_Click(object sender, EventArgs e) { if (kiemtra()) { try { //////////tạo mới đối tượng nhà cung cấp NCC ncc = new NCC(); } catch (Exception ex) { MessageBox.Show(" Có lỗi xảy ra trong quá trình thêm mới nhà cung cấp", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }