/// <summary> /// Grid_RowDataBound method imlementation /// </summary> protected void Grid_RowDataBound(object sender, GridViewRowEventArgs e) { AssemblyConfigurationWrapper wr = (e.Row.DataItem as AssemblyConfigurationWrapper); if ((wr != null) && (string.IsNullOrEmpty(wr.AssemblyFulldescription))) { e.Row.Visible = false; } }
/// <summary> /// InsertingData method implementation /// </summary> protected void InsertingData(object sender, ObjectDataSourceMethodEventArgs e) { if (!CheckModifyAccess()) { e.Cancel = true; SPUtility.HandleAccessDenied(new UnauthorizedAccessException("You are not authorized to call this operation.")); } foreach (System.Collections.DictionaryEntry prm in e.InputParameters) { AssemblyConfigurationWrapper wr = prm.Value as AssemblyConfigurationWrapper; if (wr != null) { wr.ServiceApplication = ServiceApplication; } } }
/// Delete method implementation /// </summary> public static void Delete(AssemblyConfigurationWrapper __values) { __values.ServiceApplication.DeleteAssemblyConfiguration(new AssemblyConfiguration(__values.AssemblyFulldescription, __values.AssemblyTypeDescription, __values.Selected, __values.TraceResolve, __values.ClaimsExt)); __values = null; }
/// Insert method implementation /// </summary> public static void Insert(AssemblyConfigurationWrapper values) { values.ServiceApplication.SetAssemblyConfiguration(null, new AssemblyConfiguration(values.AssemblyFulldescription, values.AssemblyTypeDescription, values.Selected, values.TraceResolve, values.ClaimsExt)); }
/// <summary> /// Update method implementation /// </summary> public static void Update(AssemblyConfigurationWrapper values, AssemblyConfigurationWrapper __values) { __values.ServiceApplication.SetAssemblyConfiguration(new AssemblyConfiguration(__values.AssemblyFulldescription, __values.AssemblyTypeDescription, __values.Selected, __values.TraceResolve, __values.ClaimsExt), new AssemblyConfiguration(values.AssemblyFulldescription, values.AssemblyTypeDescription, values.Selected, values.TraceResolve, values.ClaimsExt)); }