Exemplo n.º 1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            LoadSettings();

            if (!Directory.Exists(backupFolder) || farmsimVersion == "")
            {
                farmsimVersion = "FarmingSimulator2019";
                MessageBox.Show("You need to set your options");
                frmOptions frmOptions = new frmOptions(this);
                frmOptions.Show(this);
            }

            string path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            DebugLog("Found My Documents path: " + path);
            // C:\Users\Computer User\Documents\My Games\FarmingSimulator2017
            saveGamePathRoot = path + Path.DirectorySeparatorChar + "My Games";
            saveGamePath     = saveGamePathRoot + Path.DirectorySeparatorChar + farmsimVersion;

            RefreshLists();
        }
Exemplo n.º 2
0
        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmOptions frmOptions = new frmOptions(this);

            frmOptions.ShowDialog(this);
        }