Example #1
0
        private void DocApply_Click(object sender, RoutedEventArgs e)
        {
            Button            objButton = (Button)sender;
            MTApplyMgrModel   mgrApply  = objButton.Tag as MTApplyMgrModel;
            MTApplycationUser applyUser = CurrentPopup.FindName("userApplyForm") as MTApplycationUser;

            applyUser.DataContext        = mgrApply;
            CurrentPopup.PlacementTarget = objButton.Parent as Grid;
            CurrentPopup.IsOpen          = true;
            (applyUser.FindName("tbSearch") as TextBox).Focus();
        }
Example #2
0
        private void Grid_KeyUp(object sender, KeyEventArgs e)
        {
            MTApplyMgrModel mgrApply = this.DataContext as MTApplyMgrModel;

            if (e.Key == Key.PageDown)
            {
                mgrApply.SetBack();
            }
            else if (e.Key == Key.PageUp)
            {
                mgrApply.SetNext();
            }
        }