public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            HighLightingEditor dlg = new HighLightingEditor();
            dlg.Records = (HighLightingRecord[])value;

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                return dlg.Records;

            return value;
        }
示例#2
0
        public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            HighLightingEditor dlg = new HighLightingEditor();

            dlg.Records = (HighLightingRecord[])value;

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return(dlg.Records);
            }

            return(value);
        }