MainWnd and DataEntry.S620 changes

This commit is contained in:
Milan Hanajik
2021-11-18 14:53:12 +01:00
parent 44761ff411
commit a35716733d
10 changed files with 281 additions and 91 deletions
+4 -1
View File
@@ -22,6 +22,7 @@ namespace TBF.Rig.DataEntry.S620
public int MaxWMsCount;
public char CloseButton;
public bool ProductionTracing;
public bool OrdersFromProdTracing;
/// Private parameterless constructor invoked by all other (public) constructors
EntryFormCfg() { }
@@ -35,15 +36,17 @@ namespace TBF.Rig.DataEntry.S620
MaxWMsCount = 20;
CloseButton = '+';
ProductionTracing = true;
OrdersFromProdTracing = false;
}
public string ToString(int i)
{
return string.Format("Name={0}, MaxWMsCount={1}, CloseButton={2}, ProductionTracing={3}, Parent={4}",
return string.Format("Name={0}, MaxWMsCount={1}, CloseButton={2}, ProdTracing={3}, OrdersFromProdTr={4}, Parent={5}",
Name,
MaxWMsCount,
(CloseButton == '+') ? "+" : (CloseButton == '\t') ? "Tab" : "none",
ProductionTracing,
OrdersFromProdTracing,
string.IsNullOrEmpty(ParentName) ? "-" : ParentName);
}
}