Show used Json-files
This commit is contained in:
@ -40,6 +40,7 @@ namespace CobXmlSupport
|
|||||||
private string indTemp = "";
|
private string indTemp = "";
|
||||||
private char[] splitChars = { '#' };
|
private char[] splitChars = { '#' };
|
||||||
private int ClientSizeMinWidth;
|
private int ClientSizeMinWidth;
|
||||||
|
private codeCompleter Cc;
|
||||||
|
|
||||||
Dictionary<string, GenSetting> setObjs; // = new Dictionary<string, GenSetting>();
|
Dictionary<string, GenSetting> setObjs; // = new Dictionary<string, GenSetting>();
|
||||||
SaverListener sl;
|
SaverListener sl;
|
||||||
@ -210,7 +211,8 @@ namespace CobXmlSupport
|
|||||||
|
|
||||||
private void showRows()
|
private void showRows()
|
||||||
{
|
{
|
||||||
codeCompleter Cc = new codeCompleter(cmbLastFile.Text, txtPrefix.Text);
|
// codeCompleter Cc = new codeCompleter(cmbLastFile.Text, txtPrefix.Text);
|
||||||
|
Cc = new codeCompleter(cmbLastFile.Text, txtPrefix.Text);
|
||||||
Cc.TryFill_In_Dic();
|
Cc.TryFill_In_Dic();
|
||||||
Cc.TryFill_Out_Dic();
|
Cc.TryFill_Out_Dic();
|
||||||
string fieldInCompl = "", fieldOutCompl = "";
|
string fieldInCompl = "", fieldOutCompl = "";
|
||||||
@ -220,7 +222,7 @@ namespace CobXmlSupport
|
|||||||
if (rw.CobLevel == 1)
|
if (rw.CobLevel == 1)
|
||||||
{
|
{
|
||||||
string inFile = cmbLastFile.Text.Substring(cmbLastFile.Text.LastIndexOf("\\") + 1);
|
string inFile = cmbLastFile.Text.Substring(cmbLastFile.Text.LastIndexOf("\\") + 1);
|
||||||
CreateComment(outCob, rw.TagName, S.ettingUserName, S.ettingCompany, inFile);
|
CreateComment(outCob, rw.TagName, S.ettingUserName, S.ettingCompany, inFile, showJson: true);
|
||||||
}
|
}
|
||||||
if (rw.CobLevel > 0)
|
if (rw.CobLevel > 0)
|
||||||
{
|
{
|
||||||
@ -1096,7 +1098,7 @@ namespace CobXmlSupport
|
|||||||
/// <param name="typeComm"></param>
|
/// <param name="typeComm"></param>
|
||||||
/// <param name="Author"></param>
|
/// <param name="Author"></param>
|
||||||
/// <param name="Firm"></param>
|
/// <param name="Firm"></param>
|
||||||
public void CreateComment(TextBox outView, string typeComm, string Author, string Firm, string sourceFile = "")
|
public void CreateComment(TextBox outView, string typeComm, string Author, string Firm, string sourceFile = "",bool showJson=false)
|
||||||
{
|
{
|
||||||
outView.Text = " *----------------------------------------------------------------*";
|
outView.Text = " *----------------------------------------------------------------*";
|
||||||
centeredComment(outView, typeComm.ToUpper());
|
centeredComment(outView, typeComm.ToUpper());
|
||||||
@ -1109,6 +1111,12 @@ namespace CobXmlSupport
|
|||||||
outView.Text += "\r\n * Time : " + DateTime.Now.ToShortTimeString().PadRight(51) + "*";
|
outView.Text += "\r\n * Time : " + DateTime.Now.ToShortTimeString().PadRight(51) + "*";
|
||||||
outView.Text += "\r\n * Author : " + Author.PadRight(51) + "*";
|
outView.Text += "\r\n * Author : " + Author.PadRight(51) + "*";
|
||||||
outView.Text += "\r\n * Company : " + Firm.PadRight(51) + "*";
|
outView.Text += "\r\n * Company : " + Firm.PadRight(51) + "*";
|
||||||
|
if (showJson)
|
||||||
|
{
|
||||||
|
outView.Text += "\r\n * Json-pth : " + Cc.jsonPathId.PadRight(51) + "*";
|
||||||
|
outView.Text += "\r\n * Json-in : " + Cc.CcFileInId.PadRight(51) + "*";
|
||||||
|
outView.Text += "\r\n * Json-Out : " + Cc.CcFileOutId.PadRight(51) + "*";
|
||||||
|
}
|
||||||
outView.Text += "\r\n *----------------------------------------------------------------*";
|
outView.Text += "\r\n *----------------------------------------------------------------*";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user