diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 6d01cf5..4a935fe 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -28,14 +28,14 @@ namespace VideoConcat private void BtnLogin_Click(object sender, RoutedEventArgs e) { - Video video = new(); + + if (txtUserName.Text == "admin" && txtPassword.Password == "&o4Fwag3xYUf") + { + Video video = new(); video.Show(); this.Close(); return; - if (txtUserName.Text == "admin" && txtPassword.Password == "&o4Fwag3xYUf") - { - } MessageBox.Show("用户名或者密码错误!");