using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using FastReport.Design;
using FastReport.Forms;
namespace FastReport.Wizards
{
///
/// Represents the "New Data Source" wizard.
///
public class NewDataSourceWizard : WizardBase
{
///
public override bool Run(Designer designer)
{
if (designer.Restrictions.DontCreateData)
return false;
using (DataWizardForm form = new DataWizardForm(designer.ActiveReport))
{
bool result = form.ShowDialog() == DialogResult.OK;
if (result)
designer.SetModified(this, "EditData");
return result;
}
}
}
}