コード例 #1
0
 /// <summary>
 /// Registers a setting as an application setting.
 /// </summary>
 /// <param name="owningSettings">The concrete settings implementation that provides the actual settings property.</param>
 /// <param name="name">The name of the setting.</param>
 /// <param name="type">The data type of the setting.</param>
 public void RegisterSetting(SettingsBase owningSettings, string name, Type type)
 {
     _applicationSettings.Add(new Setting(owningSettings, name, type));
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="T:INTV.Shared.Properties.SettingsBase.ApplicationSettings.Setting"/> class.
 /// </summary>
 /// <param name="settings">The <see cref="SettingsBase"/> instance that provides the actual setting value.</param>
 /// <param name="name">The name of the setting.</param>
 /// <param name="type">The data type of the setting value.</param>
 public Setting(SettingsBase settings, string name, Type type)
 {
     OwningSettings = settings;
     Name           = name;
     Type           = type;
 }