Пример #1
0
 public static AESetting Default()
 {
     lock (sync)
     {
         return(settings ?? (settings = new AESetting()));
     }
 }
Пример #2
0
        public AESettingViewModel(AESetting aESetting) : base()
        {
            this.aESetting = aESetting;

            Messenger.Register((sender, e) =>
            {
                if (e.EventMessage != EventMessage.SaveSettings)
                {
                    return;
                }

                this.aESetting.Save();
            });

            base.InitializeCommands();
        }