hiding of testbutton
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="CobXmlSupport.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
<section name="XMLPlayAround.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
@ -9,6 +10,64 @@
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
</startup>
|
||||
<userSettings>
|
||||
<CobXmlSupport.Properties.Settings>
|
||||
<setting name="LastFile" serializeAs="Xml">
|
||||
<value>
|
||||
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<string>@"C:\testdata\Reengineering\FD_GetVehicleHistory.xml"</string>
|
||||
</ArrayOfString>
|
||||
</value>
|
||||
</setting>
|
||||
<setting name="UserName" serializeAs="String">
|
||||
<value>Tommy Öman</value>
|
||||
</setting>
|
||||
<setting name="CompanyName" serializeAs="String">
|
||||
<value>Fordonsdata Nordic AB</value>
|
||||
</setting>
|
||||
<setting name="NoNsRef" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="UniqueVars" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="UniqueAttrVars" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Unique" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Wrap" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Values" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="AnaTag" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="Prefix" serializeAs="String">
|
||||
<value>GWM_</value>
|
||||
</setting>
|
||||
<setting name="MaxOcc" serializeAs="String">
|
||||
<value>25</value>
|
||||
</setting>
|
||||
<setting name="CountVars" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="LogVarName" serializeAs="String">
|
||||
<value>Logg-post</value>
|
||||
</setting>
|
||||
<setting name="LogSectName" serializeAs="String">
|
||||
<value>UpdateLogFile</value>
|
||||
</setting>
|
||||
<setting name="ExpPrefix" serializeAs="String">
|
||||
<value>GWX_</value>
|
||||
</setting>
|
||||
<setting name="ShowTestbtns" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
</CobXmlSupport.Properties.Settings>
|
||||
<XMLPlayAround.Properties.Settings>
|
||||
<setting name="LastFile" serializeAs="Xml">
|
||||
<value>
|
||||
|
||||
@ -88,6 +88,7 @@
|
||||
<EmbeddedResource Include="ShowCode.resx">
|
||||
<DependentUpon>ShowCode.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="App.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
||||
1
CobXmlSupport/GenCobCode.Designer.cs
generated
1
CobXmlSupport/GenCobCode.Designer.cs
generated
@ -432,6 +432,7 @@
|
||||
//
|
||||
// btnFrXMLTo
|
||||
//
|
||||
this.btnFrXMLTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnFrXMLTo.Location = new System.Drawing.Point(673, 655);
|
||||
this.btnFrXMLTo.Name = "btnFrXMLTo";
|
||||
this.btnFrXMLTo.Size = new System.Drawing.Size(92, 22);
|
||||
|
||||
@ -68,6 +68,7 @@ namespace CobXmlSupport
|
||||
chkDisplays.Enabled = false;
|
||||
chkPerform.Enabled = false;
|
||||
chkMvToDisp.Enabled = false;
|
||||
btnFrXMLTo.Enabled = false;
|
||||
|
||||
if (cmbLastFile.Text.Length > 0)
|
||||
{
|
||||
@ -181,6 +182,7 @@ namespace CobXmlSupport
|
||||
chkDisplays.Enabled = true;
|
||||
chkPerform.Enabled = true;
|
||||
chkMvToDisp.Enabled = true;
|
||||
btnFrXMLTo.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -649,6 +651,7 @@ namespace CobXmlSupport
|
||||
S.ettingWrap = Properties.Settings.Default.Wrap;
|
||||
S.ettingLogVarName = Properties.Settings.Default.LogVarName;
|
||||
S.ettingLogSectName = Properties.Settings.Default.LogSectName;
|
||||
S.ettingSpecials = Properties.Settings.Default.ShowTestbtns;
|
||||
|
||||
chkAnaTag.Checked = S.ettingAnaTag;
|
||||
chkCountVars.Checked = S.ettingCountVars;
|
||||
@ -662,6 +665,7 @@ namespace CobXmlSupport
|
||||
chkUniqueVars.Checked = S.ettingUniqueVars;
|
||||
chkValues.Checked = S.ettingValues;
|
||||
chkWrap.Checked = S.ettingWrap;
|
||||
btnTestThings.Visible = S.ettingSpecials;
|
||||
|
||||
formLoading = false;
|
||||
cmbLastFile.Text = cmbLastFile.Items[0].ToString();
|
||||
@ -1020,6 +1024,7 @@ namespace CobXmlSupport
|
||||
setWindow.ChkCountVars = S.ettingCountVars;
|
||||
setWindow.LogPost = S.ettingLogVarName;
|
||||
setWindow.LogSection = S.ettingLogSectName;
|
||||
setWindow.ChkShowTestbtns = S.ettingSpecials;
|
||||
|
||||
setWindow.ShowDialog();
|
||||
S.ettingUserName = setWindow.UserName;
|
||||
@ -1038,6 +1043,7 @@ namespace CobXmlSupport
|
||||
S.ettingCountVars = setWindow.ChkCountVars;
|
||||
S.ettingLogVarName = setWindow.LogPost;
|
||||
S.ettingLogSectName = setWindow.LogSection;
|
||||
S.ettingSpecials = setWindow.ChkShowTestbtns;
|
||||
|
||||
chkAnaTag.Checked = S.ettingAnaTag;
|
||||
chkCountVars.Checked = S.ettingCountVars;
|
||||
@ -1051,6 +1057,7 @@ namespace CobXmlSupport
|
||||
txtMaxOcc.Text = S.ettingMaxOcc;
|
||||
txtPrefix.Text = S.ettingPrefix;
|
||||
txtExpPrefix.Text = S.ettingExpPrefix;
|
||||
btnTestThings.Visible = S.ettingSpecials;
|
||||
|
||||
eventRun = false;
|
||||
runXMLgen();
|
||||
|
||||
26
CobXmlSupport/Properties/Settings.Designer.cs
generated
26
CobXmlSupport/Properties/Settings.Designer.cs
generated
@ -8,27 +8,17 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace CobXmlSupport.Properties
|
||||
{
|
||||
|
||||
|
||||
|
||||
namespace CobXmlSupport.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
|
||||
|
||||
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
@ -227,5 +217,17 @@ namespace CobXmlSupport.Properties
|
||||
this["ExpPrefix"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool ShowTestbtns {
|
||||
get {
|
||||
return ((bool)(this["ShowTestbtns"]));
|
||||
}
|
||||
set {
|
||||
this["ShowTestbtns"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="CobXmlSupport.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="LastFile" Type="System.Collections.Specialized.StringCollection" Scope="User">
|
||||
@ -53,5 +53,8 @@
|
||||
<Setting Name="ExpPrefix" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">GWX_</Value>
|
||||
</Setting>
|
||||
<Setting Name="ShowTestbtns" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@ -23,6 +23,7 @@ namespace CobXmlSupport
|
||||
public static bool ettingCountVars;
|
||||
public static string ettingLogVarName;
|
||||
public static string ettingLogSectName;
|
||||
public static bool ettingSpecials;
|
||||
//-------------------------
|
||||
}
|
||||
}
|
||||
|
||||
34
CobXmlSupport/frmSettings.Designer.cs
generated
34
CobXmlSupport/frmSettings.Designer.cs
generated
@ -56,14 +56,17 @@
|
||||
this.txtLogPost = new System.Windows.Forms.TextBox();
|
||||
this.txtLogSection = new System.Windows.Forms.TextBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.specials = new System.Windows.Forms.GroupBox();
|
||||
this.chkShowTestbtns = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.specials.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCancel.Location = new System.Drawing.Point(490, 366);
|
||||
this.btnCancel.Location = new System.Drawing.Point(487, 370);
|
||||
this.btnCancel.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(79, 24);
|
||||
@ -75,7 +78,7 @@
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnSave.Location = new System.Drawing.Point(406, 366);
|
||||
this.btnSave.Location = new System.Drawing.Point(403, 370);
|
||||
this.btnSave.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(79, 24);
|
||||
@ -114,7 +117,7 @@
|
||||
//
|
||||
// txtCompanyName
|
||||
//
|
||||
this.txtCompanyName.Location = new System.Drawing.Point(101, 65);
|
||||
this.txtCompanyName.Location = new System.Drawing.Point(101, 62);
|
||||
this.txtCompanyName.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.txtCompanyName.Name = "txtCompanyName";
|
||||
this.txtCompanyName.Size = new System.Drawing.Size(195, 20);
|
||||
@ -334,11 +337,32 @@
|
||||
this.label7.TabIndex = 37;
|
||||
this.label7.Text = "Namn log section";
|
||||
//
|
||||
// specials
|
||||
//
|
||||
this.specials.Controls.Add(this.chkShowTestbtns);
|
||||
this.specials.Location = new System.Drawing.Point(325, 216);
|
||||
this.specials.Name = "specials";
|
||||
this.specials.Size = new System.Drawing.Size(240, 149);
|
||||
this.specials.TabIndex = 41;
|
||||
this.specials.TabStop = false;
|
||||
this.specials.Text = "specialla inställningar";
|
||||
//
|
||||
// chkShowTestbtns
|
||||
//
|
||||
this.chkShowTestbtns.AutoSize = true;
|
||||
this.chkShowTestbtns.Location = new System.Drawing.Point(7, 20);
|
||||
this.chkShowTestbtns.Name = "chkShowTestbtns";
|
||||
this.chkShowTestbtns.Size = new System.Drawing.Size(95, 17);
|
||||
this.chkShowTestbtns.TabIndex = 0;
|
||||
this.chkShowTestbtns.Text = "visa testknapp";
|
||||
this.chkShowTestbtns.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// frmSettings
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(577, 399);
|
||||
this.Controls.Add(this.specials);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.txtCompanyName);
|
||||
@ -357,6 +381,8 @@
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.specials.ResumeLayout(false);
|
||||
this.specials.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@ -391,5 +417,7 @@
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox txtExpPrefix;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.GroupBox specials;
|
||||
private System.Windows.Forms.CheckBox chkShowTestbtns;
|
||||
}
|
||||
}
|
||||
@ -21,6 +21,7 @@ namespace CobXmlSupport
|
||||
private bool tmpChkValues;
|
||||
private bool tmpChkAnaTag;
|
||||
private bool tmpChkCountVars;
|
||||
private bool tmpShowTestBtns;
|
||||
private string tmpTxtPrefix;
|
||||
private string tmpTxtExpPrefix;
|
||||
private string tmpTxtMaxOcc;
|
||||
@ -170,6 +171,19 @@ namespace CobXmlSupport
|
||||
chkAnaTag.Checked = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ChkShowTestbtns
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkShowTestbtns.Checked;
|
||||
}
|
||||
set
|
||||
{
|
||||
chkShowTestbtns.Checked = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string TxtMaxOcc
|
||||
{
|
||||
get
|
||||
@ -219,6 +233,7 @@ namespace CobXmlSupport
|
||||
Properties.Settings.Default.UniqueVars = chkUniqueVars.Checked;
|
||||
Properties.Settings.Default.Values = chkValues.Checked;
|
||||
Properties.Settings.Default.Wrap = chkWrap.Checked;
|
||||
Properties.Settings.Default.ShowTestbtns= chkShowTestbtns.Checked;
|
||||
Properties.Settings.Default.LogVarName = txtLogPost.Text;
|
||||
Properties.Settings.Default.LogSectName = txtLogSection.Text;
|
||||
Properties.Settings.Default.Save();
|
||||
@ -237,6 +252,7 @@ namespace CobXmlSupport
|
||||
tmpChkWrap = chkWrap.Checked;
|
||||
tmpChkValues = chkValues.Checked;
|
||||
tmpChkAnaTag = chkAnaTag.Checked;
|
||||
tmpShowTestBtns = chkShowTestbtns.Checked;
|
||||
tmpTxtPrefix = txtPrefix.Text;
|
||||
tmpTxtExpPrefix = txtExpPrefix.Text;
|
||||
tmpTxtMaxOcc = txtMaxOcc.Text;
|
||||
@ -257,6 +273,7 @@ namespace CobXmlSupport
|
||||
chkWrap.Checked= tmpChkWrap;
|
||||
chkValues.Checked= tmpChkValues;
|
||||
chkAnaTag.Checked= tmpChkAnaTag;
|
||||
chkShowTestbtns.Checked = tmpShowTestBtns;
|
||||
txtPrefix.Text= tmpTxtPrefix;
|
||||
txtExpPrefix.Text = tmpTxtExpPrefix;
|
||||
txtMaxOcc.Text = tmpTxtMaxOcc;
|
||||
|
||||
Reference in New Issue
Block a user