public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { FormConfigurationEditor form = new FormConfigurationEditor(); form.SetText(value?.ToString()); form.ShowDialog(); return(form.GetText()); }
static void Main() { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new FormConfigurationEditor()); FormConfigurationEditor form = new FormConfigurationEditor(); form.SetText("hehe"); form.ShowDialog(); //TestForm t = new TestForm(); //t.ShowDialog(); return; }