Esempio n. 1
0
		/// <summary>
		/// Resets the property value back to its default
		/// </summary>
		/// <remarks>
		/// Called by the IDE
		/// </remarks>
		protected void ResetCaptionGradient() {
			CaptionGradient = DefaultCaptionGradient ;
		}
Esempio n. 2
0
		/// <summary>
		/// Reset the property to its default value
		/// </summary>
		/// <remarks>
		/// Called by the IDE designer
		/// </remarks>
		protected void ResetPanelGradient() {
			PanelGradient = DefaultPanelGradient ;
		}
 /// <summary>
 /// Construct a <see cref="GradientColor"/> from the properties in a <see cref="IDictionary"/>
 /// </summary>
 /// <param name="context">designer context</param>
 /// <param name="propertyValues">The "serialized" values for the <see cref="GradientColor"/></param>
 /// <returns>
 /// A <see cref="GradientColor"/>
 /// </returns>
 public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
 {
     GradientColor gradientColor = new GradientColor();
     gradientColor.Start = (System.Drawing.Color)propertyValues["Start"];
     gradientColor.End = (System.Drawing.Color)propertyValues["End"];
     return (object)gradientColor;
 }