Пример #1
0
        public TweakManager()
        {
            TweakStore.InitTweaks(Categorys);

            if (!Load(Categorys))
            {
                foreach (Tweak tweak in GetAllTweaks())
                {
                    tweak.State = TweakEngine.TestTweak(tweak) ? Tweak.States.SelGroupe : Tweak.States.Unsellected;
                }

                Store();
            }

            /*foreach (TweakStore.Category category in Categorys.Values)
             * {
             *  foreach (TweakStore.Group group in category.Groups.Values)
             *  {
             *      foreach (Tweak tweak in group.Tweaks.Values)
             *      {
             *          TweakList.Add(tweak.guid, tweak);
             *      }
             *  }
             * }*/


            Timer          = new DispatcherTimer();
            Timer.Tick    += new EventHandler(OnTimerTick);
            Timer.Interval = new TimeSpan(0, 0, 0, 0, 1000);
            Timer.Start();

            NextTweakCheck = 0;
        }
 public Tweaks()
 {
     TweakStore.InitTweaks(Categorys);
 }