Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions dsneditor/EsOdbcDsnEditor/DSNEditorForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dsneditor/EsOdbcDsnEditor/DSNEditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public DsnEditorForm(
numericUpDownBodySize.Text = Builder.ContainsKey("MaxBodySizeMB") ? Builder["MaxBodySizeMB"].ToString().StripBraces() : "100";
comboBoxFloatsFormat.Text = Builder.ContainsKey("ScientificFloats") ? Builder["ScientificFloats"].ToString().StripBraces() : "default";
comboBoxDataEncoding.Text = Builder.ContainsKey("Packing") ? Builder["Packing"].ToString() : "JSON";
comboBoxDataCompression.Text = Builder.ContainsKey("Compression") ? Builder["Compression"].ToString() : "auto";

string[] noes = {"no", "false", "0"};
checkBoxFollowRedirects.Checked = !noes.Contains(Builder.ContainsKey("Follow") ? Builder["Follow"].ToString().StripBraces() : "yes");
Expand All @@ -171,6 +172,7 @@ public DsnEditorForm(
toolTipBodySize.SetToolTip(numericUpDownBodySize, "The maximum number of megabytes that the driver will accept for one page.");
toolTipFloatsFormat.SetToolTip(comboBoxFloatsFormat, "How should the floating point numbers be printed, when these are converted to string by the driver.");
toolTipDataEncoding.SetToolTip(comboBoxDataEncoding, "How should the data between the server and the driver be encoded as.");
toolTipDataCompression.SetToolTip(comboBoxDataCompression, "Should the data between the server and the driver be compressed?");
toolTipFollowRedirects.SetToolTip(checkBoxFollowRedirects, "Should the driver follow HTTP redirects of the requests to the server?");
toolTipApplyTZ.SetToolTip(checkBoxApplyTZ, "Should the driver use machine's local timezone? The default is UTC.");
toolTipAutoEscapePVA.SetToolTip(checkBoxAutoEscapePVA, "Should the driver auto-escape the pattern-value arguments?");
Expand Down Expand Up @@ -286,6 +288,7 @@ private bool RebuildAndValidateDsn()
Builder["MaxBodySizeMB"] = numericUpDownBodySize.Text;
Builder["ScientificFloats"] = comboBoxFloatsFormat.Text;
Builder["Packing"] = comboBoxDataEncoding.Text;
Builder["Compression"] = comboBoxDataCompression.Text;
Builder["Follow"] = checkBoxFollowRedirects.Checked ? "true" : "false";
Builder["ApplyTZ"] = checkBoxApplyTZ.Checked ? "true" : "false";
Builder["AutoEscapePVA"] = checkBoxAutoEscapePVA.Checked ? "true" : "false";
Expand Down
3 changes: 3 additions & 0 deletions dsneditor/EsOdbcDsnEditor/DSNEditorForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,9 @@
<metadata name="toolTipDataEncoding.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>854, 213</value>
</metadata>
<metadata name="toolTipDataCompression.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>1046, 215</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>314</value>
</metadata>
Expand Down