VideoConcat/Views/MainWindow.xaml.cs
2025-01-13 00:29:05 +08:00

37 lines
843 B
C#

using System.Windows;
namespace VideoConcat.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void BtnExit_Click(object sender, RoutedEventArgs e)
{
Close();
}
private void BtnLogin_Click(object sender, RoutedEventArgs e)
{
if (Username.Text == "admin" && Password.Password == "123456")
{
new Video().Show();
Close();
}
else
{
System.Windows.MessageBox.Show("用户名或者密码错误!");
Username.Clear();
Password.Clear();
}
}
}
}