private void CheckIfItsFirstLaunch()
        {
            if (Config.TryReadInt("FirstLaunch") != 1)
            {
                return;
            }

            //Create dialog
            var v = new Dialogs.FirstLaunchDialog();

            //Show dialog
            if (v.ShowDialog() == DialogResult.OK)
            {
                DataManagers.GameManager.Objects = v.CreatedGames;
                Config.AddVariable("SelectedProfileId", 0);
                Utils.TryReloadPathFormatterVars();

                return;
            }

            //If user closes dialog without selecting csgo directory
            //Inform user that he needs to select his csgo directory
            MessageBox.Show("Can not continue. You need to create your first game", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);

            //Cannot continue
            //Close application
            Environment.Exit(0);
        }
Beispiel #2
0
        void CheckIfItsFirstLaunch()
        {
            if (Config.TryReadInt("FirstLaunch") == 1)
            {
                //Create dialog
                var v = new Dialogs.FirstLaunchDialog();

                //Show dialog
                if (!(v.ShowDialog() == DialogResult.OK))
                {
                    //If user closes dialog without selecting csgo directory
                    //Inform user that he needs to select his csgo directory
                    MessageBox.Show("Can not continue. You need to create your first profile", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    //Cannot continue
                    //Close application
                    Environment.Exit(0);
                }
            }
        }