Пример #1
0
        private void Edit_Click(object sender, RoutedEventArgs e)
        {
            EditParcelDataWindow epdw = new EditParcelDataWindow();

            epdw.Owner       = this;
            epdw.DataContext = userListBox.SelectedItem;
            epdw.ShowDialog();
        }
        private void Edit(object sender, RoutedEventArgs e)
        {
            EditParcelDataWindow win = new EditParcelDataWindow();

            win.Owner = this;
            win.ShowDialog();
            View.Refresh();
        }