示例#1
0
 /// <inheritdoc/>
 public bool InvokeEditor()
 {
     using (QueryWizardForm form = new QueryWizardForm(this))
     {
         return(form.ShowDialog() == DialogResult.OK);
     }
 }
示例#2
0
        public override object EditValue(ITypeDescriptorContext context,
                                         IServiceProvider provider, object Value)
        {
            edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            TableDataSource data = context.Instance as TableDataSource;

            if (data != null)
            {
                using (QueryWizardForm form = new QueryWizardForm(data))
                {
                    form.VisiblePanelIndex = 2;
                    form.btnFinish.Enabled = true;
                    if (form.ShowDialog() == DialogResult.OK)
                    {
                        data.Report.Designer.SetModified(null, "Change");
                    }
                }
            }

            return(Value);
        }