Пример #1
0
        private void ByByWindows(object sender, FormClosedEventArgs e)
        {
            Form frm;

            if (sender is Form)
            {
                frm = (Form)sender;
                if (frm == frmLietKeTinhGia)
                {
                    frmLietKeTinhGia = null;
                }
            }
        }
Пример #2
0
 private void mnuView_QuoteBrowser_Click(object sender, EventArgs e)
 {
     if (frmLietKeTinhGia == null)
     {
         frmLietKeTinhGia             = new LietKeTinhGiaForm();
         frmLietKeTinhGia.KieuSapXep  = SapXepTinhGiaS.Khong;
         frmLietKeTinhGia.FormClosed += new FormClosedEventHandler(ByByWindows);
         frmLietKeTinhGia.MdiParent   = this;
         frmLietKeTinhGia.Show();
     }
     else
     {
         frmLietKeTinhGia.Focus();
     }
 }