Пример #1
0
 private void buttonPLop_Click(object sender, EventArgs e)
 {
     if (m_PhanLop == null || m_PhanLop.IsDisposed)
     {
         m_PhanLop = new frmDictionary();
         m_PhanLop.MdiParent = frmDictionary.ActiveForm;
         m_PhanLop.Show();
     }
     else
         m_PhanLop.Activate();
 }
Пример #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            if (DataService.OpenConnection())
            {
                        frmDictionary m_Dictionary = null;
                        if (m_Dictionary == null || m_Dictionary.IsDisposed)
                        {
                            m_Dictionary = new frmDictionary();
                            m_Dictionary.MdiParent = frmDictionary.ActiveForm;
                            m_Dictionary.Show();
                        }
                        else
                            m_Dictionary.Activate();

            }
            else
            {
                MessageBoxEx.Show("Kết nối dữ liệu thất bại!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }