Exemplo n.º 1
0
 private void StatusBtn_Click(System.Object eventSender, System.EventArgs eventArgs)
 {
     try
     {
         if (m_StatusDlg == null || !m_StatusDlg.Created)
         {
             m_StatusDlg = new StatusDlg(gxSerial1);
         }
         if (!m_StatusDlg.Visible)// Shows dialog.
         {
             m_StatusDlg.Show(this);
         }
         else // Activates dialog.
         {
             m_StatusDlg.Focus();
         }
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }
Exemplo n.º 2
0
        private void StatusBtn_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
            try
            {
                if (m_StatusDlg == null || !m_StatusDlg.Created)
                {
                    m_StatusDlg = new StatusDlg(gxSerial1);
                } 
                if (!m_StatusDlg.Visible)// Shows dialog.
                {
                    m_StatusDlg.Show(this);
                }
                else // Activates dialog.
                {
                    m_StatusDlg.Focus();
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);
            }
		}