Esempio n. 1
0
 public void Update(CoreSystem?other)
 {
     if (other is null)
     {
         return;
     }
     if (Enabled != other.Enabled)
     {
         Enabled = other.Enabled;
         OnPropertyChanged(nameof(Enabled));
     }
     if (!Parameters.DeepEqualsDictionaryNaive(other.Parameters))
     {
         Parameters = other.Parameters;
         OnPropertyChanged(nameof(Parameters));
     }
 }
Esempio n. 2
0
 public override bool NotApplicableTo(string romHash, CoreSystem?system) => system != _system;
Esempio n. 3
0
 public override bool NotApplicableTo(string romHash, CoreSystem?system) => system != _system || !_romHashes.Contains(romHash);
Esempio n. 4
0
 public abstract bool NotApplicableTo(string romHash, CoreSystem?system);
Esempio n. 5
0
 public bool DeepEquals(CoreSystem?other)
 {
     return(other is not null &&
            Enabled == other.Enabled &&
            Parameters.DeepEqualsDictionaryNaive(other.Parameters));
 }