Ejemplo n.º 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public ClientForm()
        {
            InitializeComponent();

            InitPara();

            InitStaMember();

            InitBtnMember();

            InitWaitPointAreaTwoMember();

            labelLogo.Text = APPConfig.LogoStr();

            timerFunc.Enabled = true;

            toolStripLabelVersion.Text = "版本号:V14.1";

            _dealThread = new Thread(ThreadFunc);

            _dealThread.IsBackground = true;

            _dealThread.Start();

            InitMap();

            this.WindowState = FormWindowState.Maximized;
        }
Ejemplo n.º 2
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            _isLogin = APPConfig.UserLogin(textBoxName.Text, textBoxPassWord.Text);

            if (_isLogin)
            {
                MessageBox.Show("登录成功!");

                this.Close();
            }
            else
            {
                MessageBox.Show("验证失败!");
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ClientForm_SizeChanged(object sender, EventArgs e)
        {
            labelLogo.Text = APPConfig.LogoStr();

            labelLogo.Location = new Point((this.Width - labelLogo.Width) / 2, labelLogo.Location.Y);
        }