Info per file implemented (more testing required)
This commit is contained in:
@ -30,9 +30,9 @@ namespace CobXmlSupport
|
||||
private string txtLogVarSectTmp;
|
||||
|
||||
//------------
|
||||
private GenSetting genSet;
|
||||
// private string aktualFile;
|
||||
// private string filePath;
|
||||
private GenSetting genSet;
|
||||
// private string aktualFile;
|
||||
// private string filePath;
|
||||
private SaverListener sl;
|
||||
|
||||
public string AktualFile
|
||||
@ -43,7 +43,7 @@ namespace CobXmlSupport
|
||||
}
|
||||
set
|
||||
{
|
||||
txtActualFile.Text = value;
|
||||
txtActualFile.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -55,7 +55,7 @@ namespace CobXmlSupport
|
||||
}
|
||||
set
|
||||
{
|
||||
txtFilePath.Text = value;
|
||||
txtFilePath.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
@ -112,8 +112,8 @@ namespace CobXmlSupport
|
||||
txtLogSection.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public string UserName
|
||||
{
|
||||
get
|
||||
@ -240,7 +240,7 @@ namespace CobXmlSupport
|
||||
}
|
||||
|
||||
public bool ChkBackupOwnCode
|
||||
{
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkBackupOwnCode.Checked;
|
||||
@ -308,6 +308,9 @@ namespace CobXmlSupport
|
||||
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();
|
||||
|
||||
this.genSet.GetSettings();
|
||||
@ -318,45 +321,48 @@ namespace CobXmlSupport
|
||||
|
||||
private void frmSettings_Load(object sender, EventArgs e)
|
||||
{
|
||||
UserTmp = txtUserName.Text;
|
||||
CompanyTmp = txtCompanyName.Text;
|
||||
tmpChkNoNsRef = chkNoNsRef.Checked;
|
||||
tmpChkUniqueVars = chkUniqueVars.Checked;
|
||||
tmpChkUniqueAttrVars = chkUniqueAttrVars.Checked;
|
||||
tmpChkUnique = chkUnique.Checked;
|
||||
tmpChkWrap = chkWrap.Checked;
|
||||
tmpChkValues = chkValues.Checked;
|
||||
tmpChkAnaTag = chkAnaTag.Checked;
|
||||
tmpShowTestBtns = chkShowTestbtns.Checked;
|
||||
tmpBackupOwnCode = chkBackupOwnCode.Checked;
|
||||
tmpTxtPrefix = txtPrefix.Text;
|
||||
tmpTxtExpPrefix = txtExpPrefix.Text;
|
||||
tmpTxtMaxOcc = txtMaxOcc.Text;
|
||||
txtLogVarNameTmp = txtLogPost.Text ;
|
||||
txtLogVarSectTmp = txtLogSection.Text;
|
||||
this.AktualFile = S.ettingActualFile;
|
||||
this.FilePath = S.ettingFilePath;
|
||||
tmpChkAnaTag = chkAnaTag.Checked = S.ettingAnaTag;
|
||||
tmpChkCountVars = chkCountVars.Checked = S.ettingCountVars;
|
||||
tmpTxtMaxOcc = txtMaxOcc.Text = S.ettingMaxOcc;
|
||||
tmpChkNoNsRef = chkNoNsRef.Checked = S.ettingNoNsRef;
|
||||
tmpTxtPrefix = txtPrefix.Text = S.ettingPrefix;
|
||||
tmpTxtExpPrefix = txtExpPrefix.Text = S.ettingExpPrefix;
|
||||
tmpChkUnique = chkUnique.Checked = S.ettingUnique;
|
||||
tmpChkUniqueAttrVars = chkUniqueAttrVars.Checked = S.ettingUniqueAttrVars;
|
||||
tmpChkUniqueVars = chkUniqueVars.Checked = S.ettingUniqueVars;
|
||||
tmpChkValues = chkValues.Checked = S.ettingValues;
|
||||
tmpChkWrap = chkWrap.Checked = S.ettingWrap;
|
||||
tmpShowTestBtns = chkShowTestbtns.Checked = S.ettingSpecials;
|
||||
tmpBackupOwnCode = chkBackupOwnCode.Checked = S.ettingBackupOwnCode;
|
||||
txtLogVarNameTmp = txtLogPost.Text = S.ettingLogVarName;
|
||||
txtLogVarSectTmp = txtLogSection.Text = S.ettingLogSectName;
|
||||
|
||||
tmpChkCountVars = chkCountVars.Checked;
|
||||
UserTmp = txtUserName.Text = S.ettingUserName;
|
||||
CompanyTmp = txtCompanyName.Text = S.ettingCompany;
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtUserName.Text = UserTmp;
|
||||
txtCompanyName.Text = CompanyTmp;
|
||||
chkNoNsRef.Checked= tmpChkNoNsRef;
|
||||
chkUniqueVars.Checked= tmpChkUniqueVars;
|
||||
chkUniqueAttrVars.Checked= tmpChkUniqueAttrVars ;
|
||||
chkUnique.Checked= tmpChkUnique;
|
||||
chkWrap.Checked= tmpChkWrap;
|
||||
chkValues.Checked= tmpChkValues;
|
||||
chkAnaTag.Checked= tmpChkAnaTag;
|
||||
chkShowTestbtns.Checked = tmpShowTestBtns;
|
||||
chkBackupOwnCode.Checked = tmpBackupOwnCode;
|
||||
chkAnaTag.Checked = tmpChkAnaTag;
|
||||
chkCountVars.Checked = tmpChkCountVars;
|
||||
txtMaxOcc.Text = tmpTxtMaxOcc;
|
||||
chkNoNsRef.Checked = tmpChkNoNsRef;
|
||||
txtPrefix.Text = tmpTxtPrefix;
|
||||
txtExpPrefix.Text = tmpTxtExpPrefix;
|
||||
txtMaxOcc.Text = tmpTxtMaxOcc;
|
||||
txtLogPost.Text= txtLogVarNameTmp;
|
||||
txtLogSection.Text= txtLogVarSectTmp;
|
||||
chkCountVars.Checked = tmpChkCountVars;
|
||||
chkUnique.Checked = tmpChkUnique;
|
||||
chkUniqueAttrVars.Checked = tmpChkUniqueAttrVars;
|
||||
chkUniqueVars.Checked = tmpChkUniqueVars;
|
||||
chkValues.Checked = tmpChkValues;
|
||||
chkWrap.Checked = tmpChkWrap;
|
||||
chkShowTestbtns.Checked = tmpShowTestBtns;
|
||||
chkBackupOwnCode.Checked = tmpBackupOwnCode;
|
||||
txtLogPost.Text = txtLogVarNameTmp;
|
||||
txtLogSection.Text = txtLogVarSectTmp;
|
||||
|
||||
txtUserName.Text = UserTmp;
|
||||
txtCompanyName.Text = CompanyTmp;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user