private void Button_UpdateParagraph_Click(object sender, RoutedEventArgs e)
 {
     UserControl_Bordered_ParagraphWithPreview userControl =
         m_stackPanel_paragraphs.Children.OfType<UserControl_Bordered_ParagraphWithPreview>().Single(g => g.ParagraphId == SelectedParagraphId);
     Window_Paragraph window =
         new Window_Paragraph
         (
             userControl.ParagraphId,
             userControl.ParagraphOrder,
             userControl.RoomId,
             (win) =>
             {
                 Window_Paragraph wWin = win as Window_Paragraph;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateParagraph(wWin.ParagraphId.Value, wWin.ParagraphOrder.Value, wWin.RoomId);
             }
         );
     window.Show();
 }
 private void Button_CreateParagraph_Click(object sender, RoutedEventArgs e)
 {
     Window_Paragraph window =
         new Window_Paragraph
         (
             null,
             null,
             RoomId,
             (win) =>
             {
                 Window_Paragraph wWin = win as Window_Paragraph;
                 if (wWin != null)
                     GinTubBuilderManager.CreateParagraph(wWin.ParagraphOrder.Value, wWin.RoomId);
             }
         );
     window.Show();
 }