private UIElement CreateControls( int? resultTypeJSONPropertyId, string resultTypeJSONPropertyJSONProperty, int? resultTypeJSONPropertyDataType, int resultTypeId ) { m_userControl_resultTypeJSONProperty = new UserControl_ResultTypeJSONProperty ( resultTypeJSONPropertyId, resultTypeJSONPropertyJSONProperty, resultTypeJSONPropertyDataType, resultTypeId, true ); return m_userControl_resultTypeJSONProperty; }
private void CreateControls( int? resultTypeJSONPropertyId, string resultTypeJSONPropertyJSONProperty, int? resultTypeJSONPropertyDataType, 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_modifyResultTypeJSONProperty = new Button() { Content = "Modify ResultTypeJSONProperty" }; button_modifyResultTypeJSONProperty.Click += Button_UpdateResultTypeJSONProperty_Click; grid_main.SetGridRowColumn(button_modifyResultTypeJSONProperty, 0, 0); m_userControl_resultTypeJSONProperty = new UserControl_ResultTypeJSONProperty ( resultTypeJSONPropertyId, resultTypeJSONPropertyJSONProperty, resultTypeJSONPropertyDataType, resultTypeId, false ); grid_main.SetGridRowColumn(m_userControl_resultTypeJSONProperty, 1, 0); m_userControl_resultTypeJSONProperty.SetActiveAndRegisterForGinTubEvents(); Border border = new Border() { Style = new Style_DefaultBorder(), Child = grid_main }; Content = border; }