VideoConcat/MainWindow.xaml.cs
2024-11-26 21:59:37 +08:00

47 lines
1.1 KiB
C#

using System.Windows;
using System.Windows.Input;
namespace VideoConcat
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void BtnExit_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
{
if (Mouse.LeftButton == MouseButtonState.Pressed)
{
this.DragMove();
}
}
private void BtnLogin_Click(object sender, RoutedEventArgs e)
{
if (txtUserName.Text == "admin" && txtPassword.Password == "&o4Fwag3xYUf")
{
Video video = new();
video.Show();
this.Close();
return;
}
MessageBox.Show("用户名或者密码错误!");
txtUserName.Clear();
txtPassword.Clear();
}
}
}