canceled Code

This commit is contained in:
Tommy Öman
2015-11-03 23:26:02 +01:00
parent 42c16b48da
commit cf6bc34631
2 changed files with 252 additions and 262 deletions

View File

@ -59,6 +59,8 @@
this.chkBackupVars = new System.Windows.Forms.CheckBox(); this.chkBackupVars = new System.Windows.Forms.CheckBox();
this.btnRerun = new System.Windows.Forms.Button(); this.btnRerun = new System.Windows.Forms.Button();
this.grpProduce = new System.Windows.Forms.GroupBox(); this.grpProduce = new System.Windows.Forms.GroupBox();
this.btnMoveFromAttr = new System.Windows.Forms.Button();
this.btnXmlKopAttr = new System.Windows.Forms.Button();
this.btnFrXMLTo = new System.Windows.Forms.Button(); this.btnFrXMLTo = new System.Windows.Forms.Button();
this.chkAttribs = new System.Windows.Forms.CheckBox(); this.chkAttribs = new System.Windows.Forms.CheckBox();
this.chkNewArea = new System.Windows.Forms.CheckBox(); this.chkNewArea = new System.Windows.Forms.CheckBox();
@ -71,8 +73,6 @@
this.grpSettings = new System.Windows.Forms.GroupBox(); this.grpSettings = new System.Windows.Forms.GroupBox();
this.btnSaveArea = new System.Windows.Forms.Button(); this.btnSaveArea = new System.Windows.Forms.Button();
this.btnShowWorkFiles = new System.Windows.Forms.Button(); this.btnShowWorkFiles = new System.Windows.Forms.Button();
this.btnXmlKopAttr = new System.Windows.Forms.Button();
this.btnMoveFromAttr = new System.Windows.Forms.Button();
this.grpProduce.SuspendLayout(); this.grpProduce.SuspendLayout();
this.grpSettings.SuspendLayout(); this.grpSettings.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -403,6 +403,26 @@
this.grpProduce.TabStop = false; this.grpProduce.TabStop = false;
this.grpProduce.Text = "Producera"; this.grpProduce.Text = "Producera";
// //
// btnMoveFromAttr
//
this.btnMoveFromAttr.Location = new System.Drawing.Point(290, 36);
this.btnMoveFromAttr.Name = "btnMoveFromAttr";
this.btnMoveFromAttr.Size = new System.Drawing.Size(92, 22);
this.btnMoveFromAttr.TabIndex = 45;
this.btnMoveFromAttr.Text = "G. Mov. Fr.+Attr";
this.btnMoveFromAttr.UseVisualStyleBackColor = true;
this.btnMoveFromAttr.Click += new System.EventHandler(this.btnMoveFromAttr_Click);
//
// btnXmlKopAttr
//
this.btnXmlKopAttr.Location = new System.Drawing.Point(290, 82);
this.btnXmlKopAttr.Name = "btnXmlKopAttr";
this.btnXmlKopAttr.Size = new System.Drawing.Size(92, 22);
this.btnXmlKopAttr.TabIndex = 44;
this.btnXmlKopAttr.Text = "Kop XML+Attr";
this.btnXmlKopAttr.UseVisualStyleBackColor = true;
this.btnXmlKopAttr.Click += new System.EventHandler(this.btnXmlKopAttr_Click);
//
// btnFrXMLTo // btnFrXMLTo
// //
this.btnFrXMLTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnFrXMLTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@ -425,7 +445,6 @@
this.chkAttribs.Text = "Move Attribs"; this.chkAttribs.Text = "Move Attribs";
this.chkAttribs.UseVisualStyleBackColor = true; this.chkAttribs.UseVisualStyleBackColor = true;
this.chkAttribs.Visible = false; this.chkAttribs.Visible = false;
this.chkAttribs.CheckedChanged += new System.EventHandler(this.chkAttribs_CheckedChanged);
// //
// chkNewArea // chkNewArea
// //
@ -438,7 +457,6 @@
this.chkNewArea.Text = "Till Area"; this.chkNewArea.Text = "Till Area";
this.chkNewArea.UseVisualStyleBackColor = true; this.chkNewArea.UseVisualStyleBackColor = true;
this.chkNewArea.Visible = false; this.chkNewArea.Visible = false;
this.chkNewArea.CheckedChanged += new System.EventHandler(this.chkNewArea_CheckedChanged);
// //
// chkMvToDisp // chkMvToDisp
// //
@ -552,26 +570,6 @@
this.btnShowWorkFiles.UseVisualStyleBackColor = true; this.btnShowWorkFiles.UseVisualStyleBackColor = true;
this.btnShowWorkFiles.Click += new System.EventHandler(this.btnShowWorkFiles_Click); this.btnShowWorkFiles.Click += new System.EventHandler(this.btnShowWorkFiles_Click);
// //
// btnXmlKopAttr
//
this.btnXmlKopAttr.Location = new System.Drawing.Point(290, 82);
this.btnXmlKopAttr.Name = "btnXmlKopAttr";
this.btnXmlKopAttr.Size = new System.Drawing.Size(92, 22);
this.btnXmlKopAttr.TabIndex = 44;
this.btnXmlKopAttr.Text = "Kop XML+Attr";
this.btnXmlKopAttr.UseVisualStyleBackColor = true;
this.btnXmlKopAttr.Click += new System.EventHandler(this.btnXmlKopAttr_Click);
//
// btnMoveFromAttr
//
this.btnMoveFromAttr.Location = new System.Drawing.Point(290, 36);
this.btnMoveFromAttr.Name = "btnMoveFromAttr";
this.btnMoveFromAttr.Size = new System.Drawing.Size(92, 22);
this.btnMoveFromAttr.TabIndex = 45;
this.btnMoveFromAttr.Text = "G. Mov. Fr.+Attr";
this.btnMoveFromAttr.UseVisualStyleBackColor = true;
this.btnMoveFromAttr.Click += new System.EventHandler(this.btnMoveFromAttr_Click);
//
// GenCobCode // GenCobCode
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -1230,13 +1230,13 @@ namespace CobXmlSupport
private void GenerateFromCode(bool inclAttr) private void GenerateFromCode(bool inclAttr)
{ {
if (chkNewArea.Checked) //if (chkNewArea.Checked)
{ //{
CreateMoveDataFromTo(); // CreateMoveDataFromTo();
fromToMoves.Show(); // fromToMoves.Show();
} //}
else //else
{ //{
if (!chkDisplays.Checked) if (!chkDisplays.Checked)
{ {
savedFile SF = new savedFile(); savedFile SF = new savedFile();
@ -1251,7 +1251,7 @@ namespace CobXmlSupport
CreateMoveFromData(); CreateMoveFromData();
fromMoves.Show(); fromMoves.Show();
} }
} //}
} }
private string adjustIf(bool ifTrue) private string adjustIf(bool ifTrue)
@ -1940,258 +1940,255 @@ namespace CobXmlSupport
return resStr; return resStr;
} }
//****************************************************************************************** ////******************************************************************************************
// Ny branch newXmlMove created **************************** //// Ny branch newXmlMove created ****************************
//****************************************************************************************** ////******************************************************************************************
private void CreateMoveDataFromTo() //private void CreateMoveDataFromTo()
{ //{
Dictionary<string, string> indexNames = new Dictionary<string, string>(); // Dictionary<string, string> indexNames = new Dictionary<string, string>();
string IndVarText = " *------------------- From - To --------------------*\r\n * Extra indexvariabler för occurs-taggar --------*\r\n *--------------------------------------------------*"; // string IndVarText = " *------------------- From - To --------------------*\r\n * Extra indexvariabler för occurs-taggar --------*\r\n *--------------------------------------------------*";
string aktIndList = "", slask = "", slask2 = "", slask3 = "", slask4 = ""; // string aktIndList = "", slask = "", slask2 = "", slask3 = "", slask4 = "";
string occParIndRows = ""; // string occParIndRows = "";
IndexState Is = new IndexState(indexNames, rowList, false); // IndexState Is = new IndexState(indexNames, rowList, false);
fromToMoves = new ShowCode(); // fromToMoves = new ShowCode();
fromToMoves.FormParent = this; // fromToMoves.FormParent = this;
fromToMoves.Labeltext = "Creating \"move From - To\" Code"; // fromToMoves.Labeltext = "Creating \"move From - To\" Code";
savedFile SF = new savedFile(); // savedFile SF = new savedFile();
SF.idConnect = "0A975654-75C6-4A8C-8534-AA16F46BC740"; // SF.idConnect = "0A975654-75C6-4A8C-8534-AA16F46BC740";
SF.usageName = S.ettingActualFile.Substring(0, S.ettingActualFile.LastIndexOf(".")) + "_Transfer"; // SF.usageName = S.ettingActualFile.Substring(0, S.ettingActualFile.LastIndexOf(".")) + "_Transfer";
SF.fNameSaved = S.ettingActualFile.Substring(0, S.ettingActualFile.LastIndexOf(".")) + "_Transfer.cbl"; // SF.fNameSaved = S.ettingActualFile.Substring(0, S.ettingActualFile.LastIndexOf(".")) + "_Transfer.cbl";
fromToMoves.SavedFile = SF; // fromToMoves.SavedFile = SF;
bool adj = false; // bool adj = false;
bool valueSwitch = false; // bool valueSwitch = false;
foreach (CobRow cr in rowList) // foreach (CobRow cr in rowList)
{ // {
string occParRows = ""; // string occParRows = "";
if (cr.CobLevel < 2) // if (cr.CobLevel < 2)
{ // {
string inFile = cmbLastFile.Text.Substring(cmbLastFile.Text.LastIndexOf("\\") + 1); // string inFile = cmbLastFile.Text.Substring(cmbLastFile.Text.LastIndexOf("\\") + 1);
CreateComment(fromToMoves.CodeShower, "Moves from " + cr.FieldName, S.ettingUserName, S.ettingCompany, inFile); // CreateComment(fromToMoves.CodeShower, "Moves from " + cr.FieldName, S.ettingUserName, S.ettingCompany, inFile);
} // }
if (okToCode(cr)) // if (okToCode(cr))
{ // {
if (cr.CountIn.Length > 0 || chkAttribs.Checked && cr.isAttribute) // if (cr.CountIn.Length > 0 || chkAttribs.Checked && cr.isAttribute)
{ // {
adj = true; // adj = true;
string fejkRow = ""; // string fejkRow = "";
CobRow crChk = cr; // CobRow crChk = cr;
indTemp = ""; // indTemp = "";
aktIndList = ""; // aktIndList = "";
//Debug.WriteLine(cr.FieldName); // //Debug.WriteLine(cr.FieldName);
while (crChk.LevelParent != null) // while (crChk.LevelParent != null)
{ // {
fejkRow += "\r\n OF " + crChk.FieldName; // fejkRow += "\r\n OF " + crChk.FieldName;
fejkRow = checkForOccurs(indexNames, crChk, fromToMoves.CodeShower.Text, ref occParRows, ref aktIndList); // fejkRow = checkForOccurs(indexNames, crChk, fromToMoves.CodeShower.Text, ref occParRows, ref aktIndList);
crChk = crChk.LevelParent; // crChk = crChk.LevelParent;
} // }
// Here a test giving header for new iter-group would be created // // Here a test giving header for new iter-group would be created
slask4 = Is.PresentStrings(aktIndList); // slask4 = Is.PresentStrings(aktIndList);
if (slask4.Contains("END-P") && slask4.Contains("VARYING")) // if (slask4.Contains("END-P") && slask4.Contains("VARYING"))
{ // {
fromToMoves.CodeShower.Text += slask4.Substring(0, slask4.IndexOf("\r\n", 2)); // fromToMoves.CodeShower.Text += slask4.Substring(0, slask4.IndexOf("\r\n", 2));
slask4 = slask4.Substring(slask4.IndexOf("\r\n", 2)); // slask4 = slask4.Substring(slask4.IndexOf("\r\n", 2));
} // }
if ((slask4.Length > 0) && (slask4.Contains("VARYING"))) // if ((slask4.Length > 0) && (slask4.Contains("VARYING")))
{ // {
// Is.ExtraParam innehåller här aktuell count-variabel med correcta index variabler // // Is.ExtraParam innehåller här aktuell count-variabel med correcta index variabler
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "MOVE " + Is.ExtraParam; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "MOVE " + Is.ExtraParam;
slask3 = Is.ExtraParam; // slask3 = Is.ExtraParam;
int prefixPos = slask3.IndexOf(S.ettingPrefix); // int prefixPos = slask3.IndexOf(S.ettingPrefix);
slask3 = slask3.Substring(0, prefixPos) + S.ettingExpPrefix + slask3.Substring(prefixPos + S.ettingPrefix.Length); // slask3 = slask3.Substring(0, prefixPos) + S.ettingExpPrefix + slask3.Substring(prefixPos + S.ettingPrefix.Length);
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "TO " + slask3; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "TO " + slask3;
} // }
fromToMoves.CodeShower.Text += slask4; // fromToMoves.CodeShower.Text += slask4;
// aktIndList = reduceIndList(aktIndList, indTemp); nödvändig ? // // aktIndList = reduceIndList(aktIndList, indTemp); nödvändig ?
// Until here--- // // Until here---
valueSwitch = cr.FieldName.Contains("_Valu") || cr.isOccurs; // valueSwitch = cr.FieldName.Contains("_Valu") || cr.isOccurs;
if (!valueSwitch) // if (!valueSwitch)
{ // {
fromToMoves.CodeShower.Text += "\r\n IF " + cr.CountIn; // fromToMoves.CodeShower.Text += "\r\n IF " + cr.CountIn;
occParIndRows = cr.isOccurs && occParRows.Contains(",") ? occParRows.Substring(0, occParRows.LastIndexOf(",")) : occParRows; // occParIndRows = cr.isOccurs && occParRows.Contains(",") ? occParRows.Substring(0, occParRows.LastIndexOf(",")) : occParRows;
if (occParIndRows.Length > 0) // if (occParIndRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )"; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )";
} // }
fromToMoves.CodeShower.Text += "\r\n > 0"; // fromToMoves.CodeShower.Text += "\r\n > 0";
} // }
occParRows = ""; // occParRows = "";
} // }
// // //
// Start move <from> ----------------------------------------------------------- // // Start move <from> -----------------------------------------------------------
// // //
CobRow crTmp = cr; // CobRow crTmp = cr;
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "MOVE " + cr.FieldName; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "MOVE " + cr.FieldName;
fromToMoves.CodeShower.Text = checkForOccurs( // fromToMoves.CodeShower.Text = checkForOccurs(
indexNames, // indexNames,
cr, // cr,
fromToMoves.CodeShower.Text, // fromToMoves.CodeShower.Text,
ref occParRows, // ref occParRows,
ref slask, // ref slask,
false, // false,
adj); // adj);
while (crTmp.LevelParent != null) // while (crTmp.LevelParent != null)
{ // {
crTmp = crTmp.LevelParent; // crTmp = crTmp.LevelParent;
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + " OF " + crTmp.FieldName; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + " OF " + crTmp.FieldName;
fromToMoves.CodeShower.Text = checkForOccurs( // fromToMoves.CodeShower.Text = checkForOccurs(
indexNames, // indexNames,
crTmp, // crTmp,
fromToMoves.CodeShower.Text, // fromToMoves.CodeShower.Text,
ref occParRows, // ref occParRows,
ref slask, // ref slask,
false, // false,
adj); // adj);
} // }
if (occParRows.Length > 0) // if (occParRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParRows + " )"; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParRows + " )";
} // }
// // //
// Start <to> section----------------------------------------------------------- // // Start <to> section-----------------------------------------------------------
// // //
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "TO "; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "TO ";
occParRows = ""; // occParRows = "";
CobRow crTmpx = cr; // CobRow crTmpx = cr;
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) +
crTmpx.FieldName.Replace(S.ettingPrefix, S.ettingExpPrefix); // crTmpx.FieldName.Replace(S.ettingPrefix, S.ettingExpPrefix);
fromToMoves.CodeShower.Text = checkForOccurs( // fromToMoves.CodeShower.Text = checkForOccurs(
indexNames, // indexNames,
crTmpx, // crTmpx,
fromToMoves.CodeShower.Text, // fromToMoves.CodeShower.Text,
ref occParRows, // ref occParRows,
ref slask2, // ref slask2,
false, // false,
adj); // adj);
while (crTmpx.LevelParent != null) // while (crTmpx.LevelParent != null)
{ // {
crTmpx = crTmpx.LevelParent; // crTmpx = crTmpx.LevelParent;
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "OF " + // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "OF " +
crTmpx.FieldName.Replace(S.ettingPrefix, S.ettingExpPrefix); // crTmpx.FieldName.Replace(S.ettingPrefix, S.ettingExpPrefix);
fromToMoves.CodeShower.Text = checkForOccurs( // fromToMoves.CodeShower.Text = checkForOccurs(
indexNames, // indexNames,
crTmpx, // crTmpx,
fromToMoves.CodeShower.Text, // fromToMoves.CodeShower.Text,
ref occParRows, // ref occParRows,
ref slask2, // ref slask2,
false, // false,
adj); // adj);
} // }
if (occParRows.Length > 0) // if (occParRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParRows; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParRows;
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + ")"; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + ")";
} // }
if (cr.CountIn.Length > 0) // if (cr.CountIn.Length > 0)
{ // {
if (!valueSwitch) // if (!valueSwitch)
{ // {
if (chkDisplays.Checked) // if (chkDisplays.Checked)
{ // {
// // //
// Move count indicators from in-area to out-area // // Move count indicators from in-area to out-area
// // //
fromToMoves.CodeShower.Text += "\r\n MOVE "; // fromToMoves.CodeShower.Text += "\r\n MOVE ";
fromToMoves.CodeShower.Text += cr.CountIn; // fromToMoves.CodeShower.Text += cr.CountIn;
if (occParIndRows.Length > 0) // if (occParIndRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )"; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )";
} // }
fromToMoves.CodeShower.Text += "\r\n " + " TO " // fromToMoves.CodeShower.Text += "\r\n " + " TO "
+ cr.CountIn.Replace(S.ettingPrefix, S.ettingExpPrefix); // + cr.CountIn.Replace(S.ettingPrefix, S.ettingExpPrefix);
if (occParIndRows.Length > 0) // if (occParIndRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )"; // fromToMoves.CodeShower.Text += "\r\n " + adjustIf(adj) + "(" + occParIndRows + " )";
} // }
} // }
CobRow crtmp = cr; // CobRow crtmp = cr;
while (crtmp.LevelParent != null) // while (crtmp.LevelParent != null)
{ // {
crtmp = crtmp.LevelParent; // crtmp = crtmp.LevelParent;
} // }
fromToMoves.CodeShower.Text += "\r\n ELSE "; // fromToMoves.CodeShower.Text += "\r\n ELSE ";
fromToMoves.CodeShower.Text += "\r\n MOVE 0 TO "; // fromToMoves.CodeShower.Text += "\r\n MOVE 0 TO ";
fromToMoves.CodeShower.Text += cr.CountIn.Replace(S.ettingPrefix, S.ettingExpPrefix); // fromToMoves.CodeShower.Text += cr.CountIn.Replace(S.ettingPrefix, S.ettingExpPrefix);
if (occParIndRows.Length > 0) // if (occParIndRows.Length > 0)
{ // {
fromToMoves.CodeShower.Text += " (" + occParIndRows + " )"; // fromToMoves.CodeShower.Text += " (" + occParIndRows + " )";
} // }
fromToMoves.CodeShower.Text += "\r\n END-IF "; // fromToMoves.CodeShower.Text += "\r\n END-IF ";
} // }
} // }
} // }
//ändring // //ändring
fromToMoves.CodeShower.Text += Is.PresentStrings(aktIndList); // fromToMoves.CodeShower.Text += Is.PresentStrings(aktIndList);
//ändring // //ändring
} // }
fromToMoves.CodeShower.Text += Is.PresentStrings(""); // fromToMoves.CodeShower.Text += Is.PresentStrings("");
fromToMoves.CodeShower.Text = " 01 MoveToNumVar PIC 9(12).\r\n" + fromToMoves.CodeShower.Text; // fromToMoves.CodeShower.Text = " 01 MoveToNumVar PIC 9(12).\r\n" + fromToMoves.CodeShower.Text;
fromToMoves.CodeShower.Text = "\r\n 01 MoveToStringVar PIC X(500).\r\n" + fromToMoves.CodeShower.Text; // fromToMoves.CodeShower.Text = "\r\n 01 MoveToStringVar PIC X(500).\r\n" + fromToMoves.CodeShower.Text;
fromToMoves.CodeShower.Text = addOccursVars(indexNames, fromToMoves.CodeShower.Text, IndVarText); // fromToMoves.CodeShower.Text = addOccursVars(indexNames, fromToMoves.CodeShower.Text, IndVarText);
tmpRowList = new List<CobRow>(); // tmpRowList = new List<CobRow>();
foreach (string frmRow in fromToMoves.CodeShower.Lines) // foreach (string frmRow in fromToMoves.CodeShower.Lines)
{ // {
tmpRowList.Add(new CobRow(frmRow, false)); // tmpRowList.Add(new CobRow(frmRow, false));
} // }
fromToMoves.CodeShower.Text = ""; // fromToMoves.CodeShower.Text = "";
tmpRowList.ForEach(delegate(CobRow crtmp) // tmpRowList.ForEach(delegate(CobRow crtmp)
{ // {
fromToMoves.CodeShower.Text += crtmp.wrapped() + "\r\n"; // fromToMoves.CodeShower.Text += crtmp.wrapped() + "\r\n";
}); // });
} //}
//private bool okToCode(CobRow cr)
//{
// bool lOk = false;
// if (chkAttribs.Checked)
// lOk = !cr.SampleStr.Equals(NOMOVE);
// else
// lOk = !cr.isAttribute && !cr.SampleStr.Equals(NOMOVE);
// return lOk;
//}
//private void chkNewArea_CheckedChanged(object sender, EventArgs e)
//{
private bool okToCode(CobRow cr) // Point locTemp = chkDisplays.Location;
{ // if (chkNewArea.Checked)
bool lOk = false; // {
if (chkAttribs.Checked) // chkDisplays.Text = "Move counts";
lOk = !cr.SampleStr.Equals(NOMOVE); // chkAttribs.Visible = true;
else // }
lOk = !cr.isAttribute && !cr.SampleStr.Equals(NOMOVE); // else
return lOk; // {
} // chkDisplays.Text = "(Displays)";
// chkAttribs.Visible = false;
private void chkNewArea_CheckedChanged(object sender, EventArgs e) // }
{ // chkDisplays.Location = locTemp;
Point locTemp = chkDisplays.Location; //}
if (chkNewArea.Checked)
{
chkDisplays.Text = "Move counts";
chkAttribs.Visible = true;
}
else
{
chkDisplays.Text = "(Displays)";
chkAttribs.Visible = false;
}
chkDisplays.Location = locTemp;
}
private void outCob_KeyDown(object sender, KeyEventArgs e) private void outCob_KeyDown(object sender, KeyEventArgs e)
{ {
@ -2577,11 +2574,6 @@ namespace CobXmlSupport
cwi.ShowDialog(); cwi.ShowDialog();
} }
private void chkAttribs_CheckedChanged(object sender, EventArgs e)
{
}
private void btnXmlKopAttr_Click(object sender, EventArgs e) private void btnXmlKopAttr_Click(object sender, EventArgs e)
{ {
// kopiera xml inclusive Attribut // kopiera xml inclusive Attribut