Exemple #1
0
 private void btnPwdKeboard_Loaded(object sender, RoutedEventArgs e)
 {
     if (imageButtonPwd == null)
     {
         imageButtonPwd             = sender as AyImageButton;
         imageButtonPwd.Click      += ImageButtonPwd_Click;
         imageButtonPwd.MouseEnter += pb_MouseEnter;
     }
 }
        private void viewInfo_Click(object sender, RoutedEventArgs e)
        {
            AyImageButton img = sender as AyImageButton;

            if (img != null)
            {
                EmployeeInfo emp = img.Tag as EmployeeInfo;
                MessageBox.Show("查看员工ID:" + emp.EmployeeNo);
                //EditEmployeeWindowMainView view = new EditEmployeeWindowMainView();
                //view.Nation = "342457198912143675";
                //view.EmpName = emp.Name;
                //view.EmpNo = emp.EmployeeNo;
                //EditEmployeeWindow w = new EditEmployeeWindow(view);
                //w.ShowDialog();
            }
        }