commit
a4587ba9a3
3 changed files with 21 additions and 12 deletions
@ -1,15 +1,24 @@ |
||||
using SparkClient.ViewModel.Configuration.SettingsPages; |
||||
using System.Windows.Input; |
||||
|
||||
namespace SparkClient.ViewModel.Configuration; |
||||
|
||||
public class SettingBaseVM : BaseViewModel |
||||
{ |
||||
public object CustomSetContent { get; } |
||||
public object ModelColorSetContent { get; } |
||||
public SettingsVM CustomSetContent { get; } |
||||
public ModelColorSetPageVM ModelColorSetContent { get; } |
||||
|
||||
public ICommand SaveCommand { get; } |
||||
|
||||
public SettingBaseVM() |
||||
{ |
||||
CustomSetContent = new SettingsVM(); |
||||
ModelColorSetContent = new ModelColorSetPageVM(); |
||||
SaveCommand = new RelayCommand(Save); |
||||
} |
||||
|
||||
public void Save(object param) |
||||
{ |
||||
CustomSetContent.SaveUpdate(param); |
||||
} |
||||
} |
Loading…
Reference in new issue