Exemple #1
0
        private void Edit_Clicked(object sender, RoutedEventArgs e)
        {
            var person = ((FrameworkElement)sender).DataContext as Person;
            var window = new AddOrUpdatePersonWindow(this.db, person);

            this.Visibility = Visibility.Hidden;
            window.ShowDialog();
            this.Visibility = Visibility.Visible;
            this.RefreshAllView();
        }
Exemple #2
0
        private void AddPeople_Clicked(object sender, RoutedEventArgs e)
        {
            var window = new AddOrUpdatePersonWindow(this.db);

            this.Visibility = Visibility.Hidden;
            window.ShowDialog();
            if (mainWindowStatus == MainWindowStatus.UpcomingEvents)
            {
                this.RefreshUpcoming();
            }
            else
            {
                this.RefreshAllView();
            }
            this.Visibility = Visibility.Visible;
        }