private void ShowDisplayItem(DisplayItem displayItem, int indentLevel = 0) { Console.WriteLine("{0}{1}", Indent(0), displayItem.Title); Console.WriteLine("{0}{1}", Indent(0), displayItem.Subtitle); Console.WriteLine("{0}{1}", Indent(0), displayItem.Description); foreach (DisplayItem item in displayItem.Items) ShowDisplayItem(item, indentLevel + 1); }
public void RemoveSelectedContract() { if (SelectedItem != null && SelectedItem.StorableItem is Contract) { Contract selectedContract = SelectedItem.StorableItem as Contract; contractModel.Remove(selectedContract); SelectedItem = null; } }