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