public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            FormConfigurationEditor form = new FormConfigurationEditor();

            form.SetText(value?.ToString());
            form.ShowDialog();
            return(form.GetText());
        }
Exemple #2
0
        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;
        }