void OnChanged(Datasack ds) { string display = ds.GetArrayValue(index); if (!System.String.IsNullOrEmpty(FormatString)) { textAbstraction.SetText(System.String.Format(FormatString, display)); return; } textAbstraction.SetText(display); }
void PrintArray(Datasack ds) { string s = ds.FullName; int length = ds.GetArrayLength(); s += System.String.Format(": {0} elements. [", length); for (int i = 0; i < length; i++) { s = s + System.String.Format("{0}{1}", ds.GetArrayValue(i), (i < length - 1) ? "," : ""); } s += "]\n"; DebugOut(s); }