mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
49ee9a67f5
commit
5709e36e8e
@ -35,10 +35,19 @@ public class SaveTranslationModWindowVM
|
||||
CheckCultures.Add(model);
|
||||
CheckAll.AddNotifySender(model.IsChecked);
|
||||
}
|
||||
CheckAll.ValueChanged += CheckAll_ValueChanged;
|
||||
CheckAll.SenderPropertyChanged += CheckAll_SenderPropertyChanged;
|
||||
SaveCommand.ExecuteEvent += Save;
|
||||
}
|
||||
|
||||
private void CheckAll_ValueChanged(bool? oldValue, bool? newValue)
|
||||
{
|
||||
if (newValue is null)
|
||||
return;
|
||||
foreach (var model in CheckCultures)
|
||||
model.IsChecked.Value = newValue.Value;
|
||||
}
|
||||
|
||||
private void CheckAll_SenderPropertyChanged(ObservableValue<bool?> source, INotifyPropertyChanged sender)
|
||||
{
|
||||
var count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user