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);
     }
 }
Esempio n. 2
0
        private static void WaitCallbackProcessApps(object objData)
        {
            ProcessAppsData processAppsData = (ProcessAppsData)objData;

            try
            {
                foreach (Node node in processAppsData.SelectedNodes)
                {
                    if (AppListView.cancelProcessMultipleApps)
                    {
                        break;
                    }

                    string displayName = node.DisplayName;
                    switch (processAppsData.Action)
                    {
                    case "Enable":
                        SSOManager.EnableApplication(displayName, true);
                        break;

                    case "Disable":
                        SSOManager.EnableApplication(displayName, false);
                        break;

                    case "Delete":
                        SSOManager.DeleteApplication(displayName);
                        break;

                    case "PurgeCache":
                        SSOManager.PurgeApplicationCache(displayName);
                        break;
                    }
                    ++processAppsData.WaitDialog.WorkProcessed;
                }
            }
            catch (Exception ex)
            {
                MsgBoxUtil.Show(processAppsData.SnapIn, ex);
            }
            finally
            {
                processAppsData.WaitDialog.CompleteDialog();
            }
        }