#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.1 KiB

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using System.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;
using ICSharpCode.SharpDevelop.Widgets.DesignTimeSupport;
namespace ICSharpCode.WixBinding
{
/// <summary>
/// Property grid editor for Guids
/// </summary>
public class GuidEditor : DropDownEditor
{
public GuidEditor()
{
}
protected override Control CreateDropDownControl(ITypeDescriptorContext context, IWindowsFormsEditorService editorService)
{
return new GuidEditorListBox(editorService);
}
protected override void SetValue(Control control, object value)
{
GuidEditorListBox listBox = (GuidEditorListBox)control;
listBox.Guid = (string)value;
}
protected override object GetValue(Control control)
{
GuidEditorListBox listBox = (GuidEditorListBox)control;
return listBox.Guid;
}
}
}