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 == "engineer")
{
if (passwd == "engineer")
{
MessageBox.Show("警告:设置模式将会对本机运行造成重大影响,请您明确操作目的及可能需承担的后果");
Windows.Set_up steup = new Windows.Set_up();
steup.Show();
this.Close();
}
else
{
MessageBox.Show("错误01:错误的认证信息");
}
}
else
{
}
}
}
}