Пример #1
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            string m_User = txt_username.Text.Trim();
            string m_Pass = txt_password.Text.Trim();
            if (m_User.Length == 0)
            {
                MessageBox.Show("�˺Ų���Ϊ��", "��ʾ");
                return;
            }

            if (m_UserName == "")
            {
                m_UserName = m_User;
            }
            m_VideoServerIP = txt_hospitalip.Text.Trim();

            try
            {
                m_VideoTcpPort = Convert.ToInt32(tb_port.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("�˿ں�������");
            }

            this.Hide();
            frmRoom m_FR = new frmRoom();
            m_FR.Show();
        }
Пример #2
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            string m_User = txt_username.Text.Trim();

            if (m_User.Length == 0)
            {
                MessageBox.Show("账号不能为空", "提示");
                return;
            }


            if (m_UserName == "")
            {
                m_UserName = m_User;
            }

            m_VideoServerIP = txt_serverip.Text.Trim();
            m_LoginPass     = txt_password.Text.Trim();

            try
            {
                m_VideoTcpPort = Convert.ToInt32(tb_port.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("端口号是整数");
            }


            this.Hide();
            frmRoom m_FR = new frmRoom();

            m_FR.Show();

            RecordLoginTrace();
        }