using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using FastReport.Controls; namespace FastReport.Data.ConnectionEditors { /// /// The base class for all connection editors. This control is used when you edit /// the connection in the Data Wizard. /// [ToolboxItem(false)] public partial class ConnectionEditorBase : UserControl { /// /// Gets or sets a connection string. /// public string ConnectionString { get { return GetConnectionString(); } set { SetConnectionString(value); } } /// /// This method should construct the connection string from values entered by user. /// /// The connection string. protected virtual string GetConnectionString() { return ""; } /// /// This method should parse the connection string and fill the user interface elements. /// /// The connection string. protected virtual void SetConnectionString(string value) { } /// /// Updates the component layout on dpi change. /// public virtual void UpdateDpiDependencies() { } /// /// Initializes a new instance of the class with default settings. /// public ConnectionEditorBase() { InitializeComponent(); } } }