Beispiel #1
0
        private async void btnNew_Click(object sender, RoutedEventArgs e)
        {
            CovidResponseWindow window = new CovidResponseWindow(_context);

            window.ShowDialog();
            if (window.DataChanged)
            {
                await UpdateData();
            }
        }
Beispiel #2
0
        private async void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            var selected = (CovidResponses)lvResponses.SelectedItems[0];
            CovidResponseWindow window = new CovidResponseWindow(_context, selected);

            window.ShowDialog();
            if (window.DataChanged)
            {
                await UpdateData();
            }
        }