Collected all settings ChkBoxes

This commit is contained in:
2015-07-16 23:39:27 +02:00
parent 125709f4ff
commit 83237693df
7 changed files with 170 additions and 30 deletions

View File

@ -23,6 +23,9 @@ namespace CobXmlSupport
private bool tmpChkCountVars;
private bool tmpShowTestBtns;
private bool tmpBackupOwnCode;
private bool tmpPerforms;
private bool tmpMvToDisp;
private bool tmpDisplays;
private string tmpTxtPrefix;
private string tmpTxtExpPrefix;
private string tmpTxtMaxOcc;
@ -251,6 +254,43 @@ namespace CobXmlSupport
}
}
public bool Performs
{
get
{
return chkPerforms.Checked;
}
set
{
chkPerforms.Checked = value;
}
}
public bool MvToDisp
{
get
{
return chkMvToDisp.Checked;
}
set
{
chkMvToDisp.Checked = value;
}
}
public bool Displays
{
get
{
return chkDisplays.Checked;
}
set
{
chkDisplays.Checked = value;
}
}
public string TxtMaxOcc
{
get
@ -292,24 +332,27 @@ namespace CobXmlSupport
sl.Subscribe(this.genSet);
S.ettingActualFile = this.AktualFile;
S.ettingFilePath = this.FilePath;
S.ettingAnaTag = Properties.Settings.Default.AnaTag = chkAnaTag.Checked;
S.ettingCompany = Properties.Settings.Default.CompanyName = txtCompanyName.Text;
S.ettingCountVars = Properties.Settings.Default.CountVars = chkCountVars.Checked;
S.ettingMaxOcc = Properties.Settings.Default.MaxOcc = txtMaxOcc.Text;
S.ettingNoNsRef = Properties.Settings.Default.NoNsRef = chkNoNsRef.Checked;
S.ettingPrefix = Properties.Settings.Default.Prefix = txtPrefix.Text;
S.ettingDisplays = chkDisplays.Checked;
S.ettingExpPrefix = Properties.Settings.Default.ExpPrefix = txtExpPrefix.Text;
S.ettingFilePath = this.FilePath;
S.ettingLogSectName = Properties.Settings.Default.LogSectName = txtLogSection.Text;
S.ettingLogVarName = Properties.Settings.Default.LogVarName = txtLogPost.Text;
S.ettingMaxOcc = Properties.Settings.Default.MaxOcc = txtMaxOcc.Text;
S.ettingMvToDisp = this.chkMvToDisp.Checked;
S.ettingNoNsRef = Properties.Settings.Default.NoNsRef = chkNoNsRef.Checked;
S.ettingPerform = this.chkPerforms.Checked;
S.ettingPrefix = Properties.Settings.Default.Prefix = txtPrefix.Text;
S.ettingShowTestbtns = Properties.Settings.Default.ShowTestbtns = chkShowTestbtns.Checked;
S.ettingUnique = Properties.Settings.Default.Unique = chkUnique.Checked;
S.ettingUniqueAttrVars = Properties.Settings.Default.UniqueAttrVars = chkUniqueAttrVars.Checked;
S.ettingUniqueVars = Properties.Settings.Default.UniqueVars = chkUniqueVars.Checked;
S.ettingUserCodeBcup = Properties.Settings.Default.BackupOwnCode = chkBackupOwnCode.Checked;
S.ettingUserName = Properties.Settings.Default.UserName = txtUserName.Text;
S.ettingValues = Properties.Settings.Default.Values = chkValues.Checked;
S.ettingWrap = Properties.Settings.Default.Wrap = chkWrap.Checked;
S.ettingShowTestbtns = Properties.Settings.Default.ShowTestbtns = chkShowTestbtns.Checked;
S.ettingBackupOwnCode = Properties.Settings.Default.BackupOwnCode = chkBackupOwnCode.Checked;
S.ettingLogVarName = Properties.Settings.Default.LogVarName = txtLogPost.Text;
S.ettingLogSectName = Properties.Settings.Default.LogSectName = txtLogSection.Text;
S.ettingUserName = Properties.Settings.Default.UserName = txtUserName.Text;
S.ettingCompany = Properties.Settings.Default.CompanyName = txtCompanyName.Text;
Properties.Settings.Default.Save();
@ -325,8 +368,12 @@ namespace CobXmlSupport
this.FilePath = S.ettingFilePath;
tmpChkAnaTag = chkAnaTag.Checked = S.ettingAnaTag;
tmpChkCountVars = chkCountVars.Checked = S.ettingCountVars;
tmpBackupOwnCode = chkBackupOwnCode.Checked = S.ettingUserCodeBcup;
tmpDisplays = chkDisplays.Checked = S.ettingDisplays;
tmpTxtMaxOcc = txtMaxOcc.Text = S.ettingMaxOcc;
tmpMvToDisp = chkMvToDisp.Checked = S.ettingMvToDisp;
tmpChkNoNsRef = chkNoNsRef.Checked = S.ettingNoNsRef;
tmpPerforms = chkPerforms.Checked = S.ettingPerform;
tmpTxtPrefix = txtPrefix.Text = S.ettingPrefix;
tmpTxtExpPrefix = txtExpPrefix.Text = S.ettingExpPrefix;
tmpChkUnique = chkUnique.Checked = S.ettingUnique;
@ -335,7 +382,7 @@ namespace CobXmlSupport
tmpChkValues = chkValues.Checked = S.ettingValues;
tmpChkWrap = chkWrap.Checked = S.ettingWrap;
tmpShowTestBtns = chkShowTestbtns.Checked = S.ettingShowTestbtns;
tmpBackupOwnCode = chkBackupOwnCode.Checked = S.ettingBackupOwnCode;
txtLogVarNameTmp = txtLogPost.Text = S.ettingLogVarName;
txtLogVarSectTmp = txtLogSection.Text = S.ettingLogSectName;
@ -347,8 +394,12 @@ namespace CobXmlSupport
{
chkAnaTag.Checked = tmpChkAnaTag;
chkCountVars.Checked = tmpChkCountVars;
chkBackupOwnCode.Checked = tmpBackupOwnCode;
chkDisplays.Checked = tmpDisplays;
txtMaxOcc.Text = tmpTxtMaxOcc;
chkMvToDisp.Checked = tmpMvToDisp;
chkNoNsRef.Checked = tmpChkNoNsRef;
chkPerforms.Checked = tmpPerforms;
txtPrefix.Text = tmpTxtPrefix;
txtExpPrefix.Text = tmpTxtExpPrefix;
chkUnique.Checked = tmpChkUnique;
@ -357,7 +408,6 @@ namespace CobXmlSupport
chkValues.Checked = tmpChkValues;
chkWrap.Checked = tmpChkWrap;
chkShowTestbtns.Checked = tmpShowTestBtns;
chkBackupOwnCode.Checked = tmpBackupOwnCode;
txtLogPost.Text = txtLogVarNameTmp;
txtLogSection.Text = txtLogVarSectTmp;