private void BCTongHopButton_Click(object sender, EventArgs e) { bool status = checkForm(baoCao.Name); if (status == true) { baoCao.tongHopRadioButton.Checked = true; } else { baoCao = new reportForm(); baoCao.MdiParent = this; mainPanel.Hide(); baoCao.tongHopRadioButton.Checked = true; baoCao.Show(); } }
private void baoCaoPictureBox_Click(object sender, EventArgs e) { bool status = checkForm(baoCao.Name); if (status == true) { baoCao.reportTabControl.SelectedIndex = 0; baoCao.shRadioButton.Checked = true; } else { baoCao = new reportForm(); baoCao.MdiParent = this; mainPanel.Hide(); baoCao.reportTabControl.SelectedIndex = 0; baoCao.shRadioButton.Checked = true; baoCao.Show(); } }