Пример #1
0
        public MetaAutonomySettingKey PopulateWithDefaults()
        {
            List<MetaAutonomyTuning> tlist;
            if (MetaAutonomyManager.sTunings.TryGetValue(this.MetaAutonomyToVenue(), out tlist))
            {
                MetaAutonomyTuning tuning = tlist[0];
                if (tuning != null)
                {
                    this.mHourOpen = tuning.HourOpen;
                    this.mHourClose = tuning.HourClose;

                    this.mDefaults = this;
                }
            }

            return this;
        }
Пример #2
0
        public MetaAutonomySettingKey PopulateWithDefaults()
        {
            List <MetaAutonomyTuning> tlist;

            if (MetaAutonomyManager.sTunings.TryGetValue(this.MetaAutonomyToVenue(), out tlist))
            {
                MetaAutonomyTuning tuning = tlist[0];
                if (tuning != null)
                {
                    this.mHourOpen  = tuning.HourOpen;
                    this.mHourClose = tuning.HourClose;

                    this.mDefaults = this;
                }
            }

            return(this);
        }
Пример #3
0
 public void AddOrUpdateMASettings(Lot.MetaAutonomyType type, MetaAutonomySettingKey settings)
 {
     if (GetMASettings(type, false) != null)
     {
         mMetaAutonomySettings[type] = settings;
     }
     else
     {
         mMetaAutonomySettings.Add(type, settings);
     }            
 }