private void btnAdd_Click(object sender, RoutedEventArgs e) { WindowAddReading window = new WindowAddReading(); var result = window.ShowDialog(); if (result ?? false) { updateListData(); } }
private void btnUpd_Click(object sender, RoutedEventArgs e) { if (SelectedReading == null) { return; } WindowAddReading window = new WindowAddReading(SelectedReading.Id); var result = window.ShowDialog(); if (result ?? false) { context.Entry <Показания_квартир>(SelectedReading).Reload(); updateListData(); } }