示例#1
0
        public static void GetSettings()
        {
            // get the settings class from the settings manager
            MapDownloadToolSettings = Settings.SettingsManager.GetSettings(typeof(ServerMapDownloadToolSettings)) as ServerMapDownloadToolSettings;

            // if there is no settings object, create a new one
            if (MapDownloadToolSettings == null)
            {
                MapDownloadToolSettings = new ServerMapDownloadToolSettings();

                Settings.SettingsManager.AddSettings(MapDownloadToolSettings);
            }
        }
示例#2
0
		public static void GetSettings()
		{
			// get the settings class from the settings manager
			MapDownloadToolSettings = Settings.SettingsManager.GetSettings(typeof(ServerMapDownloadToolSettings)) as ServerMapDownloadToolSettings;

			// if there is no settings object, create a new one
			if (MapDownloadToolSettings == null)
			{
				MapDownloadToolSettings = new ServerMapDownloadToolSettings();

				Settings.SettingsManager.AddSettings(MapDownloadToolSettings);
			}
		}
示例#3
0
 public static void GetSettings()
 {
     // get the settings class from the settings manager
     MapDownloadToolSettings = (ServerMapDownloadToolSettings)Settings.SettingsManager.GetSettings("OpenSauceIDE.MapServerDownloadTool.Settings", typeof(ServerMapDownloadToolSettings));
 }
		public static void GetSettings()
		{
			// get the settings class from the settings manager
			MapDownloadToolSettings = (ServerMapDownloadToolSettings)Settings.SettingsManager.GetSettings("OpenSauceIDE.MapServerDownloadTool.Settings", typeof(ServerMapDownloadToolSettings));
		}