private UIElement CreateControls(int? resultId, string resultName, string resultJSONData, int resultTypeId)
 {
     m_userControl_result = new UserControl_Result(resultId, resultName, resultJSONData, resultTypeId, true);
     return m_userControl_result;
 }
        private void CreateControls(int? resultId, string resultName, string resultJSONData, int resultTypeId)
        {
            Grid grid_main = new Grid();
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });

            Button button_modifyResult = new Button() { Content = "Modify Result" };
            button_modifyResult.Click += Button_UpdateResult_Click;
            grid_main.SetGridRowColumn(button_modifyResult, 0, 0);

            m_userControl_result = new UserControl_Result(resultId, resultName, resultJSONData, resultTypeId, false);
            grid_main.SetGridRowColumn(m_userControl_result, 1, 0);
            m_userControl_result.SetActiveAndRegisterForGinTubEvents();

            Border border = new Border() { Style = new Style_DefaultBorder(), Child = grid_main };
            Content = border;
        }