private void Button_UpdateParagraphState_Click(object sender, RoutedEventArgs e)
 {
     Window_ParagraphState window =
         new Window_ParagraphState
         (
             m_userControl_paragraphState.ParagraphStateId,
             m_userControl_paragraphState.ParagraphStateText,
             m_userControl_paragraphState.ParagraphStateState,
             m_userControl_paragraphState.ParagraphId,
             (win) =>
             {
                 Window_ParagraphState wWin = win as Window_ParagraphState;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateParagraphState
                     (
                         wWin.ParagraphStateId.Value,
                         wWin.ParagraphStateText,
                         wWin.ParagraphStateState.Value,
                         wWin.ParagraphId
                     );
             }
         );
     window.Show();
 }
 private void Button_CreateParagraphState_Click(object sender, RoutedEventArgs e)
 {
     Window_ParagraphState window =
         new Window_ParagraphState
         (
             null,
             null,
             null,
             SelectedParagraphId.Value,
             (win) =>
             {
                 Window_ParagraphState wWin = win as Window_ParagraphState;
                 if (wWin != null)
                     GinTubBuilderManager.CreateParagraphState(wWin.ParagraphStateText, wWin.ParagraphId);
             }
         );
     window.Show();
 }