37 lines
849 B
C#
37 lines
849 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 == "mA%4ZRKve_kA")
|
|
{
|
|
new Video().Show();
|
|
Close();
|
|
}
|
|
else
|
|
{
|
|
System.Windows.MessageBox.Show("用户名或者密码错误!");
|
|
Username.Clear();
|
|
Password.Clear();
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|