public Form1() { InitializeComponent(); m_config = new Config(); m_config.Visible = false; m_gameServerIni = new GameServerIni(); m_gameServerIni.LoadDefaults(); m_gameServerIni.ServerPath = Properties.Settings.Default.HellionDedicatedPath; ServerConfig_PropertyGrid.ToolbarVisible = false; ServerConfig_PropertyGrid.SelectedObject = m_gameServerIni; if (Properties.Settings.Default.FirstRun && Properties.Settings.Default.HellionDedicatedPath == String.Empty) { m_config.ShowDialog(); Properties.Settings.Default.FirstRun = false; //Properties.Settings.Default.Save(); } }
private void ServerConfig_LoadDefaults_Click(object sender, EventArgs e) { m_gameServerIni.LoadDefaults(); ServerConfig_PropertyGrid.Refresh(); }