private static int AssignFieldNum(ScreenContent ScreenContent, ContentField Field) { var fieldNum = 0; ContinuedFieldSegmentCode?segCode = null; if (Field is ContinuedContentField) { var contField = Field as ContinuedContentField; segCode = contField.ContinuedFieldSegmentCode; } if ((segCode == null) || (segCode.Value == ContinuedFieldSegmentCode.First)) { fieldNum = ScreenContent.NextFieldNum(); } else { fieldNum = ScreenContent.AssignSegNum(); } return(fieldNum); }
public void ApplyInput(KeyboardInputMessage Input) { ContentField contentField = null; var showText = Input.Text; // find the content field in which the input is being applied. contentField = this.GetContentField(Input.RowCol); // set the "modified" flag of the input field. if (contentField != null) { contentField.ModifiedFlag = true; } // change the input text to uppercase. if ((contentField != null) && (contentField.IsMonocase == true)) { showText = showText.ToUpper(); } // apply the text to the array of content bytes. ApplyTextBytes(Input.RowCol, showText.ToEbcdicBytes()); }