Beispiel #1
0
        private void LoadServerGeneralSettings()
        {
            // reload config files
            LoadAllSettings();

            // load the settings
            if (!ErrorHandler.isError(102))
            {
                Port.Text = serverSettings.GetServerPort();
            }

            BackendIP.Text = laucherSettings.LoadIP();
        }
Beispiel #2
0
 private void LoadAllSettings()
 {
     laucherSettings          = new LauncherSettings();
     BackendIP.Text           = laucherSettings.LoadIP();
     Port.Text                = laucherSettings.LoadPort();
     ScreenMode.SelectedIndex = laucherSettings.GetScreenMode();
     //replace names if no error exist for client and server
     if (!ErrorHandler.isError(101))
     {
         clientWatcher.ChangeAppName(laucherSettings.GetClientFilename());
     }
     if (!ErrorHandler.isError(102))
     {
         serverWatcher.ChangeAppName(laucherSettings.GetServerFilename());
         serverSettings  = new ServerSettings(laucherSettings.GetServerLocation() + @"\");
         ProfileSettings = new ProfileSettings(laucherSettings.GetServerLocation() + @"\data\profiles");
     }
 }