Esempio n. 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            WindowAddODU window = new WindowAddODU();
            var          result = window.ShowDialog();

            if (result ?? false)
            {
                updateListData();
            }
        }
Esempio n. 2
0
        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();
            }
        }