예제 #1
0
        private void DisplayExtensionForm()
        {
            SetExtensionForm frm = null;

            try
            {
                frm = new SetExtensionForm();
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    if (!connection.IsConnected)
                    {
                        ProcessLogin();
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.error(ex.ToString());
            }
            finally
            {
                if (frm != null)
                {
                    frm.Dispose();
                }
            }
        }
예제 #2
0
 private void DisplayExtensionForm()
 {
     SetExtensionForm frm = null;
     try
     {
         frm = new SetExtensionForm();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (!connection.IsConnected)
                 ProcessLogin();
         }
     }
     catch (Exception ex)
     {
         Logger.error(ex.ToString());
     }
     finally
     {
         if (frm != null) frm.Dispose();
     }
 }
예제 #3
0
        private void makeExtensionForm()
        {
            try
            {
                if (extform == null)
                {
                    extform = new SetExtensionForm();
                    if (extension != null && extension.Length > 0)
                    {
                        extform.tbx_extension.Text = extension;
                    }
                    extform.tbx_extension.KeyDown += new KeyEventHandler(tbx_extension_KeyDown);
                    extform.btn_ext_confirm.MouseClick += new MouseEventHandler(btn_ext_confirm_MouseClick);
                }
                extform.ShowDialog();
                extform.tbx_extension.Focus();

            }
            catch (Exception ex)
            {
                logWrite(ex.ToString());
            }
        }