mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-19 06:53:50 +02:00
public -> protected
This commit is contained in:
parent
6ba9c57bd0
commit
ca000aac74
@ -44,7 +44,7 @@ namespace ModernWpfPlayground
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
|
||||
public void SaveViewModel()
|
||||
protected void SaveViewModel()
|
||||
{
|
||||
var contents = JsonSerializer.Serialize(_valueDict);
|
||||
var saveFileDialog = new SaveFileDialog {AddExtension = true, DefaultExt = "*.json"};
|
||||
@ -55,7 +55,7 @@ namespace ModernWpfPlayground
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetViewModel()
|
||||
protected void ResetViewModel()
|
||||
{
|
||||
foreach (var key in _valueDict.Keys)
|
||||
{
|
||||
@ -64,7 +64,7 @@ namespace ModernWpfPlayground
|
||||
}
|
||||
}
|
||||
|
||||
public void LoadViewModel()
|
||||
protected void LoadViewModel()
|
||||
{
|
||||
var openFileDialog = new OpenFileDialog {AddExtension = true, DefaultExt = "*.json"};
|
||||
var result = openFileDialog.ShowDialog(Application.Current.MainWindow?.Owner);
|
||||
|
Loading…
x
Reference in New Issue
Block a user