Example #1
0
        private void loadConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var userSettingsToPass = this.settingsService.GetSettings();

            loadConfigForm.Location = new Point(this.Location.X + (this.Size.Width - loadConfigForm.Size.Width) / 2, this.Location.Y + (this.Size.Height - loadConfigForm.Size.Height) / 2);
            loadConfigForm.TopMost  = this.TopMost;
            loadConfigForm.showFormIfNeeded(CurrentGamePath, userSettingsToPass, defaultConfigToolStripMenuItem.Checked);
            loadConfigForm.TopMost = false;
        }