private void Button_UpdateMessageChoiceResult_Click(object sender, RoutedEventArgs e)
 {
     Window_MessageChoiceResult window =
         new Window_MessageChoiceResult
         (
             m_userControl_messageChoiceMessageChoiceResult.MessageChoiceResultId,
             m_userControl_messageChoiceMessageChoiceResult.MessageChoiceResultResult,
             m_userControl_messageChoiceMessageChoiceResult.MessageChoiceResultMessageChoice,
             MessageId,
             (win) =>
             {
                 Window_MessageChoiceResult wWin = win as Window_MessageChoiceResult;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateMessageChoiceResult
                     (
                         wWin.MessageChoiceResultId.Value,
                         wWin.MessageChoiceResultResult.Value,
                         wWin.MessageChoiceResultMessageChoice.Value
                     );
             }
         );
     window.Show();
 }
 private void NewMessageChoiceResultDialog()
 {
     Window_ResultType window_resultType =
         new Window_ResultType
         (
             null,
             null,
             (win) =>
             {
                 Window_ResultType wWin = win as Window_ResultType;
                 if (wWin != null)
                 {
                     Window_MessageChoiceResult window_messageChoiceResult =
                         new Window_MessageChoiceResult
                         (
                             null,
                             null,
                             MessageChoiceId,
                             MessageId,
                             wWin.ResultTypeId.Value,
                             (wwWin) =>
                             {
                                 Window_MessageChoiceResult wwwWin = wwWin as Window_MessageChoiceResult;
                                 if (wwwWin != null)
                                     GinTubBuilderManager.CreateMessageChoiceResult
                                     (
                                         wwwWin.MessageChoiceResultResult.Value,
                                         wwwWin.MessageChoiceResultMessageChoice.Value
                                     );
                             }
                         );
                     window_messageChoiceResult.Show();
                 }
             }
         );
     window_resultType.Show();
 }