private void NewResultTypeJSONPropertyDialog() { Window_ResultTypeJSONProperty window = new Window_ResultTypeJSONProperty ( null, null, null, ResultTypeId, (win) => { Window_ResultTypeJSONProperty wWin = win as Window_ResultTypeJSONProperty; if (wWin != null) GinTubBuilderManager.CreateResultTypeJSONProperty ( wWin.ResultTypeJSONPropertyJSONProperty, wWin.ResultTypeJSONPropertyDataType.Value, wWin.ResultTypeId ); } ); window.Show(); }
private void Button_UpdateResultTypeJSONProperty_Click(object sender, RoutedEventArgs e) { Window_ResultTypeJSONProperty window = new Window_ResultTypeJSONProperty ( m_userControl_resultTypeJSONProperty.ResultTypeJSONPropertyId, m_userControl_resultTypeJSONProperty.ResultTypeJSONPropertyJSONProperty, m_userControl_resultTypeJSONProperty.ResultTypeJSONPropertyDataType, m_userControl_resultTypeJSONProperty.ResultTypeId, (win) => { Window_ResultTypeJSONProperty wWin = win as Window_ResultTypeJSONProperty; if (wWin != null) GinTubBuilderManager.UpdateResultTypeJSONProperty ( wWin.ResultTypeJSONPropertyId.Value, wWin.ResultTypeJSONPropertyJSONProperty, wWin.ResultTypeJSONPropertyDataType.Value, wWin.ResultTypeId ); } ); window.Show(); }