예제 #1
0
        public Main()
        {
            InitializeComponent();

            if (!pathsAreSet)
            {
                Settings s = new Settings();
                if (s.ShowDialog() == DialogResult.OK)
                {
                    steamFolderPath = Properties.Settings.Default.steamFolderPath;
                    saveFolderPath = Properties.Settings.Default.saveFolderPath;

                    MW2PlayersFolder = steamFolderPath + @"\steamapps\common\call of duty modern warfare 2\players";
                    userdataFolder = steamFolderPath + @"\userdata";

                    saveManuallyButton.Enabled = true;
                }
            }

            MW2PlayersFolder = steamFolderPath + @"\steamapps\common\call of duty modern warfare 2\players";
            userdataFolder = steamFolderPath + @"\userdata";

            saveManuallyButton.Enabled = true;

            processTimer.Start();
        }
예제 #2
0
 private void settingsButton_Click(object sender, EventArgs e)
 {
     Settings s = new Settings();
     if (s.ShowDialog() == DialogResult.OK)
     {
         if (!(steamFolderPath.Equals(Properties.Settings.Default.steamFolderPath)) || !(saveFolderPath.Equals(Properties.Settings.Default.saveFolderPath)))
         {
             LogAppend("Paths updated.");
             LogAppend("New paths are:");
             LogAppend(Properties.Settings.Default.steamFolderPath);
             LogAppend(Properties.Settings.Default.saveFolderPath);
             steamFolderPath = Properties.Settings.Default.steamFolderPath;
             saveFolderPath = Properties.Settings.Default.saveFolderPath;
         }
     }
 }