コード例 #1
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            FormConfigurationEditor form = new FormConfigurationEditor();

            form.SetText(value?.ToString());
            form.ShowDialog();
            return(form.GetText());
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jingjiajie/WMSClient
        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;
        }