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.

58 lines
1.6 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("ERR01:拒绝认证");//设置密码错误
}
}
else
{
}
}
}
}