public static AESetting Default() { lock (sync) { return(settings ?? (settings = new AESetting())); } }
public AESettingViewModel(AESetting aESetting) : base() { this.aESetting = aESetting; Messenger.Register((sender, e) => { if (e.EventMessage != EventMessage.SaveSettings) { return; } this.aESetting.Save(); }); base.InitializeCommands(); }