protected override void OnDelete(SyncStatus status) { try { if (MsgBoxUtil.Confirm(this.SnapIn, Properties.Resources.DeleteFieldMessage) == true) { // get SSO application fields SSOAppFieldCollection appFields = SSOManager.GetApplicationFields(this.ScopeNode.DisplayName); // delete selected ones foreach (ResultNode resultNode in this.SelectedNodes) { appFields.Remove(resultNode.DisplayName); this.ResultNodes.Remove(resultNode); } // save fields SSOManager.UpdateApplicationFields(this.ScopeNode.DisplayName, appFields, true); // refresh view this.RefreshFields(); } } catch (Exception ex) { MsgBoxUtil.Show(this.SnapIn, ex); } }
protected override void OnDelete(SyncStatus status) { try { if (MsgBoxUtil.Confirm(this.SnapIn, Properties.Resources.DeleteApplicationMessge) == true) { this.ProcessMultipleApps("Delete"); this.OnListViewChanged(); } } catch (Exception ex) { MsgBoxUtil.Show(this.SnapIn, ex); } }
protected override void OnDelete(SyncStatus status) { GT.BizTalk.SSO.AdminMMC.UI.MsgBoxUtil.Show("Notification from AppScopeNode.OnDelete"); try { if (MsgBoxUtil.Confirm(this.SnapIn, Properties.Resources.DeleteApplicationMessge) == true) { SSOManager.DeleteApplication(this.DisplayName); ((AppRootScopeNode)this.Parent).RefreshApps(); } base.OnDelete(status); } catch (Exception ex) { MsgBoxUtil.Show(this.SnapIn, ex); } }