예제 #1
0
 public FormMain()
 {
     InitializeComponent();
     StartPosition = FormStartPosition.CenterScreen;
     Configuration.CreateConfiguration();
     CurrentConfig = Configuration.Load();
     CurrentConfig.VerifyXMLConfigFile();
     ReadGlobalConfigurations();
     if (CurrentConfig.LastOpen.Game == "")
     {
         ComboBoxSelectGame.SelectedIndex         = 0;
         ComboBoxSelectSubDirectory.SelectedValue = "Default";
     }
     else
     {
         ComboBoxSelectGame.Text         = CurrentConfig.LastOpen.Game;
         ComboBoxSelectSubDirectory.Text = CurrentConfig.LastOpen.Profile;
     }
     Hooker = new KeyHooker();
     Hooker.Initialize();
     Hooker.PropertyChanged += new PropertyChangedEventHandler(KeyPressed);
     dsHooker = new GameHooker();
     Updater  = new GithubUpdater();
     Updater.CurrentVersion = CurrentConfig.LastCommitID;
 }
예제 #2
0
 public FormSettings()
 {
     InitializeComponent();
     CurrentConfig = Configuration.Load();
     ReadGlobalConifurations();
     Hooker = new KeyHooker();
     Hooker.Initialize();
     Hooker.PropertyChanged += new PropertyChangedEventHandler(KeyPressed);
     LblVersion.Text         = "Version " + CurrentConfig.LastCommitID;
     Updater = new GithubUpdater();
 }