Exemple #1
0
        private void directoryButton_Click(object sender, EventArgs e)
        {
            Form dirPopup = new GamePathForm();

            dirPopup.Location = this.Location;
            dirPopup.ShowDialog(this);
            RefreshParameters();
        }
Exemple #2
0
        public MainForm()
        {
            InitializeComponent();

            //AllocConsole(); //Enable console
            MaximizeBox = false;

            Properties.Load();

            //If game directory is not set, create
            //popup so that user can browse to it.
            if (Properties.GameDir == null)
            {
                Form dirPopup = new GamePathForm();
                dirPopup.Location = this.Location;
                dirPopup.ShowDialog(this);
            }

            CheckAutoStart();
            Start();
        }