diff --git a/PacticeSolution/AddressBook_MVVMSample/MainWindow.xaml.cs b/PacticeSolution/AddressBook_MVVMSample/MainWindow.xaml.cs index 789facb..2ea5eee 100644 --- a/PacticeSolution/AddressBook_MVVMSample/MainWindow.xaml.cs +++ b/PacticeSolution/AddressBook_MVVMSample/MainWindow.xaml.cs @@ -104,8 +104,7 @@ namespace AddressBook_MVVMSample if (modify.ShowDialog() != true) return; - //this.Persons[this.SelectedIndex] = modifiedData; - selectedData = modifiedData; + this.Persons[this.SelectedIndex] = modifiedData; } private void CommandExitAction(object obj) diff --git a/PacticeSolution/AddressBook_MVVMSample/SubWindow/AddViewWindow.xaml b/PacticeSolution/AddressBook_MVVMSample/SubWindow/AddViewWindow.xaml index 6c58e37..9f27819 100644 --- a/PacticeSolution/AddressBook_MVVMSample/SubWindow/AddViewWindow.xaml +++ b/PacticeSolution/AddressBook_MVVMSample/SubWindow/AddViewWindow.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:AddressBook_MVVMSample.SubWindow" mc:Ignorable="d" d:DataContext="{d:DesignInstance local:AddViewWindow}" - Title="{Binding Caption, UpdateSourceTrigger=PropertyChanged}" Height="300" Width="300" + Title="{Binding Caption, UpdateSourceTrigger=PropertyChanged}" Height="300" Width="320" WindowStartupLocation="CenterOwner">