47 lines
1.1 KiB
C#
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)
|
|
{
|
|
Video video = new();
|
|
video.Show();
|
|
|
|
this.Close();
|
|
return;
|
|
if (txtUserName.Text == "admin" && txtPassword.Password == "&o4Fwag3xYUf")
|
|
{
|
|
|
|
}
|
|
|
|
MessageBox.Show("用户名或者密码错误!");
|
|
txtUserName.Clear();
|
|
txtPassword.Clear();
|
|
}
|
|
}
|
|
}
|