예제 #1
0
        private void btn_mix_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Transaction.Mix mixPage = EMS.Singleton.MixSingleton.GetInstance;


                //正在运行的话, 直接显示窗口, 否则重新登入
                if (mixPage.onGoing)
                {
                    mixPage.ShowWindow();
                }
                else
                {
                    Views.Login x = new Views.Login();
                    x.HDClick   += new Views.Login.HDClickEventHandler(x_MixPage);
                    x.BackClick += new Views.Login.BackMaskEventHandler(CloseMask);
                    x.ShowDialog();
                }
            }
            catch (Exception ee)
            {
                System.Windows.MessageBox.Show(ee.Message);
            }
        }
예제 #2
0
 private void btn_exit_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     try
     {
         Views.Login x = new Views.Login();
         x.HDClick   += new Views.Login.HDClickEventHandler(x_Close);
         x.BackClick += new Views.Login.BackMaskEventHandler(CloseMask);
         MaskActionPage.Visibility = Visibility.Visible;
         x.ShowDialog();
     }
     catch (Exception ee)
     {
         System.Windows.MessageBox.Show(ee.Message);
     }
 }
예제 #3
0
 private void btn_return_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     try
     {
         Views.Login x = new Views.Login();
         x.HDClick   += new Views.Login.HDClickEventHandler(x_ReturnPage);
         x.BackClick += new Views.Login.BackMaskEventHandler(CloseMask);
         MaskActionPage.Visibility = Visibility.Visible;
         x.ShowDialog();
         //StaticRes.Global.Homing_Complete = false;
         #region Rotary_Continue_Move
         DataTable dt = DataProvider.Local.Binning.Select.Bin_WithMateria();
         if (dt.Rows.Count > 0)
         {
             HardwareControl.Motion_Control.Rotary_Continue_Move();
         }
         #endregion
     }
     catch (Exception ee)
     {
         System.Windows.MessageBox.Show(ee.Message);
     }
 }
예제 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((EMS.Views.Login)(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.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.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.xaml"
                this.txt_userID.KeyDown += new System.Windows.Input.KeyEventHandler(this.txt_userID_KeyDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }