public ListOptionsWithExamplesWindow(OptionWithExampleListData optionListData)
 {
     InitializeComponent();
     this._optionListData = optionListData;
     this.HeadingTB.Text = this._optionListData.Opening;
     this.OptionLB.ItemsSource = this._optionListData.Options;
     this._selectedItem = null;
 }
 public ListOptionsWithExamplesWindow(OptionWithExampleListData optionListData)
 {
     InitializeComponent();
     this._optionListData      = optionListData;
     this.HeadingTB.Text       = this._optionListData.Opening;
     this.OptionLB.ItemsSource = this._optionListData.Options;
     this._selectedItem        = null;
 }
 public void AddOption(OptionWithExampleItemData option)
 {
     this._options.Add(option);
 }
 private void ListBoxItem_Selected(object sender, RoutedEventArgs e)
 {
     this._selectedItem = ((ListBoxItem)(e.Source)).Content as OptionWithExampleItemData;
     this.Close();
 }
 public void AddOption(OptionWithExampleItemData option)
 {
     this._options.Add(option);
 }
 private void ListBoxItem_Selected(object sender, RoutedEventArgs e)
 {
     this._selectedItem = ((ListBoxItem)(e.Source)).Content as OptionWithExampleItemData;
     this.Close();
 }