예제 #1
0
        private void btnChiTietPhiPhat_PhieuThue_Click(object sender, EventArgs e)
        {
            MaKHLapPhieuThue.MaKH = txtMaKhachHangPhieuThue.Text;
            MaKHLapPhieuThue.flag_LapPhieuThue = 1;
            frmChiTietPhiPhat frmChiTietPhiPhat = new frmChiTietPhiPhat();

            frmChiTietPhiPhat.ShowDialog();
        }
 private void thanhToánPhíPhạtToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //----!Đóng tất cả form con đang hiện ----
     foreach (Form f in MdiChildren)
     {
         if (f.ShowInTaskbar)
         {
             f.Close();
         }
     }
     if (kiemTraTrungForm("frmChiTietPhiPhat"))
     {
         frmChiTietPhiPhat fBaoCao = new frmChiTietPhiPhat();
         fBaoCao.Name      = "frmChiTietPhiPhat";
         fBaoCao.MdiParent = this;
         fBaoCao.Show();
     }
 }