/// <summary> /// Write out the Cyberware in the list to the label. /// </summary> /// <param name="objCyberwareLabelString">StringBuilder into which the cyberware list is written.</param> /// <param name="objCyberware">Cyberware to iterate through.</param> /// <param name="intDepth">Current dept in the list to determine how many spaces to print.</param> private void WriteList(StringBuilder objCyberwareLabelString, Cyberware objCyberware, int intDepth) { for (int i = 0; i <= intDepth; ++i) { objCyberwareLabelString.Append(" "); } objCyberwareLabelString.AppendLine(objCyberware.DisplayName(GlobalOptions.Language)); foreach (Cyberware objPlugin in objCyberware.Children) { WriteList(objCyberwareLabelString, objPlugin, intDepth + 1); } }
/// <summary> /// Write out the Cyberware in the list to the label. /// </summary> /// <param name="objCyberware">Cyberware to iterate through.</param> /// <param name="intDepth">Current dept in the list to determine how many spaces to print.</param> private void WriteList(Cyberware objCyberware, int intDepth) { string strSpace = string.Empty; for (int i = 0; i <= intDepth; i++) { strSpace += " "; } lblCyberware.Text += strSpace + objCyberware.DisplayName(GlobalOptions.Language) + "\n"; foreach (Cyberware objPlugin in objCyberware.Children) { WriteList(objPlugin, intDepth + 1); } }