public static bool ValidateNquireForm(NquireScreen parentForm) { //TODO: Validate all controls first before sending to device return true; }
/// <summary> /// Itterate over all controls on a NquireForm, decoding each into Nquire-safe commands /// </summary> /// <param name="nqForm">The parent NquireForm that has asked to be itterated</param> public static char[] ItterateOverControls(NquireScreen nqForm) { StringBuilder output = new StringBuilder(); foreach (NquireControl control in nqForm.Controls) { output.Append(control.GetNquireString()); if (control is NquireButton) { } else if(control is NquireLabel) { } } return output.ToString().ToCharArray(); }