Beispiel #1
0
 /// <summary>
 /// 登录按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnLogin_Click(object sender, RoutedEventArgs e)
 {
     if (cmbUserName.SelectedItem.ToString() == "Admin" && pwUserPassword.Password == "123456")
     {
         OpenWindows.OpenWPF(10);
         OpenWindows.MiniWPF("WPFMain");
     }
     else
     {
         MessageBox.Show("密码错误!请输入正确的密码!");
     }
 }
Beispiel #2
0
 /// <summary>
 /// 打开报警窗口 50
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAlarm_Click(object sender, RoutedEventArgs e)
 {
     OpenWindows.OpenWPF(50);
     OpenWindows.MiniWPF("WPFAlarm");
 }
Beispiel #3
0
 /// <summary>
 /// 打开信号窗口 40
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnSignals_Click(object sender, RoutedEventArgs e)
 {
     OpenWindows.OpenWPF(40);
     OpenWindows.MiniWPF("WPFSignals");
 }
Beispiel #4
0
 /// <summary>
 /// 打开手动窗口 20
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnMannal_Click(object sender, RoutedEventArgs e)
 {
     OpenWindows.OpenWPF(20);
     OpenWindows.MiniWPF("WPFManual");
 }
Beispiel #5
0
 //=======================OpenWindows=================================================================
 /// <summary>
 /// 打开主窗口 10
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnMain_Click(object sender, RoutedEventArgs e)
 {
     OpenWindows.OpenWPF(10);
     OpenWindows.MiniWPF("WPFMain");
 }
Beispiel #6
0
 /// <summary>
 /// 打开自动窗口 30
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAuto_Click(object sender, RoutedEventArgs e)
 {
     OpenWindows.OpenWPF(30);
     OpenWindows.MiniWPF("WPFAuto");
 }