private async void LoginBtn_Click(object sender, RoutedEventArgs e) { string username = txbUser.Text; string password = pwbPassword.Password.ToString(); LoginResult user = await Controller.Instance.Login(username, password); if (user.Result) { MenuWindow mwd = new MenuWindow(); mwd.Show(); this.Close(); } else { iNotifierBox.Text = "Lỗi"; iNotifierBox.ShowDialog(); } }