Beispiel #1
0
        private void TerminateButton_Click(object sender, EventArgs e)
        {
            if (grid.SelectedRows.Count > 0)
            {
                if (SquadronContext.Confirm("Are you sure you wanted to Terminate this workflow?"))
                {
                    SPWorkflow workflow = grid.SelectedRows[0].DataBoundItem as SPWorkflow;

                    SPWorkflowManager.CancelWorkflow(workflow);

                    RefreshWorkflows();
                }
            }
        }
        private void RemoveButton_Click(object sender, EventArgs e)
        {
            if (grid.SelectedRows.Count > 0)
            {
                if (SquadronContext.Confirm("Are you sure you wanted to remove the Solution?"))
                {
                    _solutionUtility.RemoveSolution(grid.SelectedRows[0].DataBoundItem as SolutionEntity);
                }
            }

            else
            {
                SquadronContext.Errr_PleaseSelect();
            }
        }
 private bool ConfirmDelete()
 {
     if (_mode == DialogMode.PermissionDelete)
     {
         return(SquadronContext.Confirm("Are you sure you want to DELETE the selected Permission(s)?" +
                                        Environment.NewLine +
                                        Environment.NewLine +
                                        "WARNING: Role Assignment will be removed, SharePoint Group entry will be deleted"));
     }
     else
     {
         return(SquadronContext.Confirm("Are you sure you want to REMOVE the selected dead accounts?" +
                                        Environment.NewLine +
                                        Environment.NewLine +
                                        "WARNING: Dead Account will be removed from all web/list/item permission entries in given URL"));
     }
 }
Beispiel #4
0
        private void EmptyButton_Click(object sender, EventArgs e)
        {
            if (NameList.CheckedItems.Count == 0)
            {
                SquadronContext.Info("Please check atleast one item!");
            }

            if (NameList.CheckedItems.Count > 0)
            {
                if (SquadronContext.Confirm("Are you sure you wanted to Clear the selected list/library?" +
                                            Environment.NewLine + "List: " + GetSelectedTitles() + Environment.NewLine + Environment.NewLine +
                                            "(If this is a Production Server, Please ensure you have Sufficient Backups)"))
                {
                    PerformEmpty();
                }
            }
        }
        private bool ConfirmDelete(object o)
        {
            bool result = false;

            if (o is SPSite)
            {
                result = SquadronContext.Confirm("Are you sure you wanted Delete the selected site collection?" + Environment.NewLine + "Site Collection: " + (o as SPSite).Url + Environment.NewLine + Environment.NewLine + GetSubSiteInfo(o));
            }

            else if (o is SPWeb)
            {
                result = SquadronContext.Confirm("Are you sure you wanted to Delete the selected site & sub sites?" + Environment.NewLine + "Site: " + (o as SPWeb).Url + Environment.NewLine + Environment.NewLine + GetSubSiteInfo(o));
            }

            else if (o is SPList)
            {
                result = SquadronContext.Confirm("Are you sure you wanted to Delete the selected list?");
            }

            return(result);
        }
Beispiel #6
0
 private bool Confirm()
 {
     return(SquadronContext.Confirm("Are you sure you want to Reset to Inherit?" + Environment.NewLine + Environment.NewLine + "Item(s): " + ItemsList.CheckedIndices.Count.ToString()));
 }
Beispiel #7
0
 private bool Confirm()
 {
     return(SquadronContext.Confirm("The selected " + SourcePermissions.GetSelectedPermissions().Count.ToString() + " permission(s) will be copied to following user: "******"Are you sure you want to continue?"));
 }