Ejemplo n.º 1
0
 private void revhis_Click(object sender, RoutedEventArgs e)
 {
     TaskHistoryDialog taskhistDialog = new TaskHistoryDialog();
     taskhistDialog.Show();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// This event handler was neccessary to ensure that the row remains selected when the Revision History 
        /// dialog is popped up.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void revhis_Click(object sender, RoutedEventArgs e)
        {
            //TaskItem selectedTaskItem = null;
            //FrameworkElement source = sender as System.Windows.FrameworkElement;
            //selectedTaskItem = (BCheck.Data.TaskItem)source.DataContext;
            //this.TaskGrid.SelectedItem = selectedTaskItem;

            //if (ViewModel.IsArchive)
            //{
            //    ((HyperlinkButton)sender).NavigateUri = null;
            //    RevisionHistoryDialog revhistWnd = new RevisionHistoryDialog();
            //    revhistWnd.Initialize(selectedTaskItem);
            //    revhistWnd.DataContext = selectedTaskItem.Clone();
            //    revhistWnd.Closed += new EventHandler(taskeditWnd_Closed);
            //    revhistWnd.Show();
            //}

            TaskHistoryDialog taskhistDialog = new TaskHistoryDialog();
            taskhistDialog.Show();
        }