private void Wizard_Cancel(object sender, System.ComponentModel.CancelEventArgs e)
 {
     DoormatBot.Doormat tmpInstance = new DoormatBot.Doormat();
     tmpInstance.PersonalSettings = settings;
     if (!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\KryGamesBot"))
     {
         Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\KryGamesBot");
     }
     tmpInstance.SavePersonalSettings(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\KryGamesBot\\PersonalSettings.json");
     tmpInstance.Strategy = new Martingale();
     tmpInstance.SaveBetSettings(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\KryGamesBot\\BetSettings_001.json");
 }
 private void wzrd_Finish(object sender, CancelEventArgs e)
 {
     DoormatBot.Doormat tmpInstance = new DoormatBot.Doormat();
     tmpInstance.PersonalSettings = settings;
     if (IsPortable)
     {
         tmpInstance.SavePersonalSettings("PersonalSettings.json");
     }
     else
     {
         string docspath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\KryGamesBot\\";
         if (!Directory.Exists(docspath))
         {
             Directory.CreateDirectory(docspath);
         }
         tmpInstance.SavePersonalSettings(docspath + "PersonalSettings.json");
     }
 }