Beispiel #1
0
 /// <inheritdoc/>
 public bool InvokeEditor()
 {
     using (DataWizardForm form = new DataWizardForm(Report))
     {
         form.Connection = this;
         form.EditMode   = true;
         return(form.ShowDialog() == DialogResult.OK);
     }
 }
 /// <inheritdoc/>
 public override bool Run(Designer designer)
 {
     using (DataWizardForm form = new DataWizardForm(designer.ActiveReport))
     {
         bool result = form.ShowDialog() == DialogResult.OK;
         if (result)
         {
             designer.SetModified(this, "EditData");
         }
         return(result);
     }
 }
Beispiel #3
0
 /// <inheritdoc/>
 public override void Invoke()
 {
     using (DataWizardForm form = new DataWizardForm(ActiveReport))
     {
         if (Designer.SelectedObjects.Count == 1 && Designer.SelectedObjects[0] is DataConnectionBase)
         {
             form.Connection        = Designer.SelectedObjects[0] as DataConnectionBase;
             form.EditMode          = true;
             form.VisiblePanelIndex = 1;
         }
         if (form.ShowDialog() == DialogResult.OK)
         {
             SetModified("EditData");
         }
     }
 }