private void Button_UpdateResult_Click(object sender, RoutedEventArgs e)
 {
     Window_Result window =
         new Window_Result
         (
             m_userControl_result.ResultId,
             m_userControl_result.ResultName,
             m_userControl_result.ResultJSONData,
             m_userControl_result.ResultTypeId,
             (win) =>
             {
                 Window_Result wWin = win as Window_Result;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateResult(wWin.ResultId.Value, wWin.ResultName, wWin.ResultJSONData, wWin.ResultTypeId);
             }
         );
     window.Show();
 }
 private void NewResultDialog()
 {
     Window_Result window =
         new Window_Result
         (
             null,
             null,
             null,
             ResultTypeId,
             (win) =>
             {
                 Window_Result wWin = win as Window_Result;
                 if (wWin != null)
                     GinTubBuilderManager.CreateResult(wWin.ResultName, wWin.ResultJSONData, wWin.ResultTypeId);
             }
         );
     window.Show();
 }
 private void NewResultDialog()
 {
     Window_ResultType window_resultType =
         new Window_ResultType
         (
             null,
             null,
             (win) =>
             {
                 Window_ResultType wWin = win as Window_ResultType;
                 if (wWin != null)
                 {
                     Window_Result window_result =
                         new Window_Result
                         (
                             null,
                             null,
                             null,
                             wWin.ResultTypeId.Value,
                             (wwWin) =>
                             {
                                 Window_Result wwwWin = wwWin as Window_Result;
                                 if (wwwWin != null)
                                     GinTubBuilderManager.CreateResult(wwwWin.Name, wwwWin.ResultJSONData, wwwWin.ResultTypeId);
                             }
                         );
                     window_result.Show();
                 }
             }
         );
     window_resultType.Show();
 }