You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
using MahApps.Metro.Controls;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace Audit.Windows
|
|
{
|
|
/// <summary>
|
|
/// LogWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class LogWindow : MetroWindow
|
|
{
|
|
public LogWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Exit(object sender, RoutedEventArgs e)//退出按钮
|
|
{
|
|
Application.Current.Shutdown();//关闭程序窗口
|
|
}
|
|
|
|
private void Log(object sender, RoutedEventArgs e)//登录按钮
|
|
{
|
|
string user = this.users.Text;
|
|
string passwd = this.Passwds.Text;
|
|
if (user == "setup")
|
|
{
|
|
if (passwd == "setup")
|
|
{
|
|
MessageBox.Show("警告:进入设置模式请您明确操作目的及可能需承担的后果");
|
|
Windows.Set_up setup = new Windows.Set_up();
|
|
setup.Show();
|
|
this.Close();
|
|
}
|
|
else
|
|
{
|
|
MessageBox.Show("错误01:错误的认证信息");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|