Exemple #1
0
        /// <summary>
        /// Handles the Click event of the btnShowFiles control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void btnShowFiles_Click(object sender, RoutedEventArgs e)
        {
            var person = SelectedGroup.SelectedPerson;
            var ctrl   = new ShowPersonMatchedFilesControl(person);
            var win    = new PopupWindow(ctrl, $"Matched files for {person.Person.Name}");

            win.Show();
        }
        /// <summary>
        /// Handles the Click event of the btnShowFiles control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void btnShowFiles_Click(object sender, RoutedEventArgs e)
        {
            var person = SelectedGroup.SelectedPerson;

            if (person == null)
            {
                MessageBox.Show("You must first select a person from the group");
                return; // To do. Should be CanExecute
            }

            var ctrl = new ShowPersonMatchedFilesControl(person);

            grdMain.Children.Add(ctrl);

            //var win = new PopupWindow(ctrl, $"Matched files for {person.Person.Name}");
            //win.Show();
        }