private void Button_UpdateNoun_Click(object sender, RoutedEventArgs e)
 {
     UserControl_Noun grid = m_stackPanel_nouns.Children.OfType<UserControl_Noun>().Single(g => g.NounId.Value == SelectedNounId);
     Window_Noun window =
         new Window_Noun
         (
             grid.NounId,
             grid.NounText,
             grid.ParagraphStateId,
             (win) =>
             {
                 Window_Noun wWin = win as Window_Noun;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateNoun(wWin.NounId.Value, wWin.NounText, wWin.ParagraphStateId);
             }
         );
     window.Show();
 }
 private void Button_CreateNoun_Click(object sender, RoutedEventArgs e)
 {
     Window_Noun window =
         new Window_Noun
         (
             null,
             null,
             ParagraphStateId,
             (win) =>
             {
                 Window_Noun wWin = win as Window_Noun;
                 if (wWin != null)
                     GinTubBuilderManager.CreateNoun(wWin.NounText, wWin.ParagraphStateId);
             }
         );
     window.Show();
 }
 private void NewNounDialog()
 {
     Window_Noun window =
         new Window_Noun
         (
             null,
             null,
             ParagraphStateId,
             (win) =>
             {
                 Window_Noun wWin = win as Window_Noun;
                 if (wWin != null)
                     GinTubBuilderManager.CreateNoun(wWin.NounText, wWin.ParagraphStateId);
             }
         );
     window.Show();
 }