public OverlayVM(OverlaySettings settings) { Save = SaveLoader.Save; Save.PropertyChanged += OnSaveChanged; Settings = settings; Settings.PropertyChanged += OnSettingsChanged; }
public void Init(OverlaySettings settings) { DataContext = new OverlayVM(settings); InitializeComponent(); }