From f4afe167a690b267c75aae7fe9a7c2854ce07c0e Mon Sep 17 00:00:00 2001 From: tfoman Date: Sun, 26 Jul 2015 23:04:00 +0200 Subject: [PATCH] Show used Json-files --- CobXmlSupport/GenCobCode.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CobXmlSupport/GenCobCode.cs b/CobXmlSupport/GenCobCode.cs index 5142dda..64427e4 100644 --- a/CobXmlSupport/GenCobCode.cs +++ b/CobXmlSupport/GenCobCode.cs @@ -40,6 +40,7 @@ namespace CobXmlSupport private string indTemp = ""; private char[] splitChars = { '#' }; private int ClientSizeMinWidth; + private codeCompleter Cc; Dictionary setObjs; // = new Dictionary(); SaverListener sl; @@ -210,7 +211,8 @@ namespace CobXmlSupport 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_Out_Dic(); string fieldInCompl = "", fieldOutCompl = ""; @@ -220,7 +222,7 @@ namespace CobXmlSupport if (rw.CobLevel == 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) { @@ -1096,7 +1098,7 @@ namespace CobXmlSupport /// /// /// - 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 = " *----------------------------------------------------------------*"; centeredComment(outView, typeComm.ToUpper()); @@ -1109,6 +1111,12 @@ namespace CobXmlSupport outView.Text += "\r\n * Time : " + DateTime.Now.ToShortTimeString().PadRight(51) + "*"; outView.Text += "\r\n * Author : " + Author.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 *----------------------------------------------------------------*"; }