Example #1
0
    public void Initialize()
    {
        randomizer = new Random();
        timer      = new Stopwatch();
        isRunning  = true;

        RandomJumpSettings.Load();
        Start();
    }
Example #2
0
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("RandomJumper", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting =
                 Load <RandomJumpSettings>(AdviserFilePathAndName("RandomJumper",
                                                                  ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new RandomJumpSettings();
     }
     catch (Exception e)
     {
         Logging.WriteDebug("RandomJumps => Load(): " + e);
     }
     return(false);
 }
Example #3
0
 public void Settings()
 {
     RandomJumpSettings.Load();
     RandomJumpSettings.CurrentSetting.ToForm();
     RandomJumpSettings.CurrentSetting.Save();
 }