コード例 #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            WindowAddReading window = new WindowAddReading();
            var result = window.ShowDialog();

            if (result ?? false)
            {
                updateListData();
            }
        }
コード例 #2
0
        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();
            }
        }