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