System.Data.SQLite
Check-in [2154db970d]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Initially, disable the provider_Changed event in the connection properties user-interface.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | designOptions
Files: files | file ages | folders
SHA1: 2154db970d1c1f9cb5cc4ec207c6cc2ed8febe18
User & Date: mistachkin 2014-08-01 18:19:26
Context
2014-08-01
18:21
Actually, refactor the previous commit to make use of the LoadProperties method override. check-in: 6d6e89424f user: mistachkin tags: designOptions
18:19
Initially, disable the provider_Changed event in the connection properties user-interface. check-in: 2154db970d user: mistachkin tags: designOptions
17:13
Permit the default ADO.NET provider name used by the design-time components to be overridden via the environment. check-in: e2413cdd97 user: mistachkin tags: designOptions
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite.Designer/SQLiteConnectionUIControl.cs.

20
21
22
23
24
25
26


27
28
29
30
31

32
33
34
35
36
37
38
..
96
97
98
99
100
101
102



103
104
105
106
107
108
109

  /// <summary>
  /// Provides a UI to edit/create SQLite database connections
  /// </summary>
  [ToolboxItem(false)]
  public partial class SQLiteConnectionUIControl : DataConnectionUIControl
  {


    public SQLiteConnectionUIControl()
    {
      InitializeComponent();
      SQLiteOptions.AddProviderNames(providerComboBox.Items);
      SQLiteOptions.SelectProviderName(providerComboBox);

    }

    private void browseButton_Click(object sender, EventArgs e)
    {
      OpenFileDialog dlg = new OpenFileDialog();
      dlg.FileName = fileTextBox.Text;
      dlg.Title = "Select SQLite Database File";
................................................................................
        ConnectionProperties["datetimeformat"] = "Ticks";
      else
        ConnectionProperties["datetimeformat"] = "JulianDay";
    }

    private void provider_Changed(object sender, EventArgs e)
    {



        object item = providerComboBox.SelectedItem;

        if (item != null)
        {
            SQLiteOptions.SetProviderName(item.ToString());
            LoadProperties();
        }







>
>





>







 







>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
..
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115

  /// <summary>
  /// Provides a UI to edit/create SQLite database connections
  /// </summary>
  [ToolboxItem(false)]
  public partial class SQLiteConnectionUIControl : DataConnectionUIControl
  {
    bool enableProviderChanged = false;

    public SQLiteConnectionUIControl()
    {
      InitializeComponent();
      SQLiteOptions.AddProviderNames(providerComboBox.Items);
      SQLiteOptions.SelectProviderName(providerComboBox);
      enableProviderChanged = true;
    }

    private void browseButton_Click(object sender, EventArgs e)
    {
      OpenFileDialog dlg = new OpenFileDialog();
      dlg.FileName = fileTextBox.Text;
      dlg.Title = "Select SQLite Database File";
................................................................................
        ConnectionProperties["datetimeformat"] = "Ticks";
      else
        ConnectionProperties["datetimeformat"] = "JulianDay";
    }

    private void provider_Changed(object sender, EventArgs e)
    {
        if (!enableProviderChanged)
            return;

        object item = providerComboBox.SelectedItem;

        if (item != null)
        {
            SQLiteOptions.SetProviderName(item.ToString());
            LoadProperties();
        }