public static string GetNoteForCrafts(SavedCraft[] crafts) { var note = "#"; foreach (var craft in crafts) { if (craft.Price != null) { if (craft.SkipCraft) { note += "-/"; } else { note += ConverterUtil.ConvertPriceToString(craft.Price) + "/"; } } } //cut the last instance of / return(note.Substring(0, note.Length - 1)); }
public string GetNotePart() { return(ConverterUtil.ConvertPriceToString(Price)); }