コード例 #1
0
        private void LoadStatusAccount()
        {
            List <Task> t = new List <Task>();

            foreach (var acc in _accFbs)
            {
                t.Add(_accFbService.UpdateLoginStatus(acc));
            }
            Task.WaitAll(t.ToArray());
            AddStatusAccountLlb();
        }
コード例 #2
0
        private void loginBtn_Click(object sender, EventArgs e)
        {
            _acc.Username = usernameTxt.Text;
            _acc.Password = passTxt.Text;

            _accFbService.UpdateLoginStatus(_acc);
            if (_acc.LoginStatus == LoginStatusConstant.NOTLOGIN)
            {
                MessageBox.Show("Sai tên đăng nhập hoặc mật khẩu!");
            }
            else
            {
                DialogResult = DialogResult.OK;
                Close();
            }
        }