Skip to content

Commit d3ca5a0

Browse files
author
ActiveDbSoft CI Service
committed
Version 3.9.5.2237
1 parent 836ca4b commit d3ca5a0

File tree

4 files changed

+115
-45
lines changed

4 files changed

+115
-45
lines changed

FullFeaturedMdiDemo/EditXMLConnectionForm.Designer.cs

Lines changed: 98 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FullFeaturedMdiDemo/EditXMLConnectionForm.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//*******************************************************************//
1010

1111
using System;
12+
using System.Drawing;
1213
using System.Windows.Forms;
1314
using ActiveQueryBuilder.Core;
1415
using ActiveQueryBuilder.Core.PropertiesEditors;
@@ -47,14 +48,15 @@ private void FillSyntaxTypes()
4748
foreach (Type syntax in Helpers.SyntaxProviderList)
4849
{
4950
var instance = Activator.CreateInstance(syntax) as BaseSyntaxProvider;
51+
52+
if(instance == null)
53+
continue;
54+
5055
cbSyntax.Items.Add(instance.Description);
5156
}
5257
}
5358

54-
private void tbXmlPath_TextChanged(object sender, EventArgs e)
55-
{
56-
_connection.XMLPath = tbXmlPath.Text;
57-
}
59+
private void tbXmlPath_TextChanged(object sender, EventArgs e) => _connection.XMLPath = tbXmlPath.Text;
5860

5961
private void btnOpenDialog_Click(object sender, EventArgs e)
6062
{
@@ -66,6 +68,8 @@ private void btnOpenDialog_Click(object sender, EventArgs e)
6668

6769
private void cbSyntax_SelectedIndexChanged(object sender, EventArgs e)
6870
{
71+
ClientSize = new Size(ClientSize.Width, mainTable.Height + Padding.Top + Padding.Bottom);
72+
6973
var syntaxType = GetSelectedSyntaxType();
7074
if (_connection.ConnectionDescriptor.SyntaxProvider.GetType() == syntaxType)
7175
{
@@ -77,6 +81,13 @@ private void cbSyntax_SelectedIndexChanged(object sender, EventArgs e)
7781
RecreateSyntaxFrame();
7882
}
7983

84+
protected override void OnLoad(EventArgs e)
85+
{
86+
ClientSize = new Size(ClientSize.Width, mainTable.Height + Padding.Top + Padding.Bottom);
87+
88+
base.OnLoad(e);
89+
}
90+
8091
private Type GetSelectedSyntaxType()
8192
{
8293
return Helpers.SyntaxProviderList[cbSyntax.SelectedIndex];
@@ -102,7 +113,6 @@ private void RecreateSyntaxFrame()
102113
(pbSyntax as IPropertiesControl).SetProperties(container);
103114

104115
pbSyntax.Height = pbSyntax.Controls[0].Bottom + 5;
105-
Height = pnlTop.Height + pbSyntax.Height + pnlFilePath.Height + 90;
106116
}
107117

108118
private void ClearProperties(ObjectProperties properties)

WinForms_CSharp_Demos.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,6 @@ Global
259259
HideSolutionNode = FALSE
260260
EndGlobalSection
261261
GlobalSection(ExtensibilityGlobals) = postSolution
262-
SolutionGuid = {4208AAF1-32E1-4DEB-9EA1-4C141D33B6BE}
262+
SolutionGuid = {102006E7-BF68-4838-A719-D4B0FDD3B77C}
263263
EndGlobalSection
264264
EndGlobal

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.4.2236
1+
3.9.5.2237

0 commit comments

Comments
 (0)