Beispiel #1
0
        private void btn_terminal_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            try
            {
                System.IO.Ports.SerialPort soltScanner_1 = new System.IO.Ports.SerialPort(StaticRes.Global.SlotScannerPort.Index1Port);
                System.IO.Ports.SerialPort soltScanner_2 = new System.IO.Ports.SerialPort(StaticRes.Global.SlotScannerPort.Index2Port);
                System.IO.Ports.SerialPort soltScanner_3 = new System.IO.Ports.SerialPort(StaticRes.Global.SlotScannerPort.Index3Port);
                System.IO.Ports.SerialPort soltScanner_4 = new System.IO.Ports.SerialPort(StaticRes.Global.SlotScannerPort.Index4Port);

                if (soltScanner_1.IsOpen)
                {
                    soltScanner_1.Close();
                }
                if (soltScanner_2.IsOpen)
                {
                    soltScanner_2.Close();
                }
                if (soltScanner_3.IsOpen)
                {
                    soltScanner_3.Close();
                }
                if (soltScanner_4.IsOpen)
                {
                    soltScanner_4.Close();
                }



                tm.Stop();
                Hardware.IO_LIST.Output.Y103_Tower_Buzzer_Off();
                Views.Login_cancel x = new Views.Login_cancel();
                x.HDClick += new Views.Login_cancel.HDClickEventHandler(x_Close);
                x.ShowDialog();
            }
            catch (Exception ee)
            {
                System.Windows.MessageBox.Show(ee.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((EMS.Views.Login_cancel)(target));
     return;
     case 2:
     this.sb_password = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 3:
     this.sb_imgExist = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 4:
     this.sb_register = ((System.Windows.Media.Animation.BeginStoryboard)(target));
     return;
     case 5:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.kb = ((EMS.Views.KeyBoard)(target));
     return;
     case 7:
     this.lb_userID = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.pas_grid = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.lb_password = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.txt_pas = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 11:
     this.grid = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.btn_login = ((System.Windows.Controls.Button)(target));
     
     #line 128 "..\..\..\..\Views\Login_cancel.xaml"
     this.btn_login.Click += new System.Windows.RoutedEventHandler(this.btn_login_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.image2 = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.btn_cancel = ((System.Windows.Controls.Button)(target));
     
     #line 157 "..\..\..\..\Views\Login_cancel.xaml"
     this.btn_cancel.Click += new System.Windows.RoutedEventHandler(this.btn_cancel_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 16:
     this.img_original = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.img_capture = ((System.Windows.Controls.Image)(target));
     return;
     case 18:
     this.Error_Img = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     this.img_err_1 = ((System.Windows.Controls.Image)(target));
     return;
     case 20:
     this.img_err_2 = ((System.Windows.Controls.Image)(target));
     return;
     case 21:
     this.img_err_3 = ((System.Windows.Controls.Image)(target));
     return;
     case 22:
     this.lb_password_Copy2 = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.txt_userID = ((System.Windows.Controls.TextBox)(target));
     
     #line 219 "..\..\..\..\Views\Login_cancel.xaml"
     this.txt_userID.KeyDown += new System.Windows.Input.KeyEventHandler(this.txt_userID_KeyDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }