private void InitializeFields() { textBoxName.Text = ""; listBoxOptions.Items.Clear(); if (ActivePrintOptionSet != null) { textBoxName.Text = ActivePrintOptionSet.OptionSetName; IEnumerable <PrintOption> optionList = PrintOption.GetInSet(ActivePrintOptionSet.Id); foreach (PrintOption option in optionList) { Printer printer = Printer.Get(option.PrinterId); listBoxOptions.Items.Add(new FormattedListBoxItem(option.Id, printer.PrinterName)); } } }