/// <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; }
private void buttonLogin_Click(object sender, EventArgs e) { _isLogin = APPConfig.UserLogin(textBoxName.Text, textBoxPassWord.Text); if (_isLogin) { MessageBox.Show("登录成功!"); this.Close(); } else { MessageBox.Show("验证失败!"); } }
/// <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); }