Esempio n. 1
0
        public override bool Edit(IPolicyEditArgs policyEditArgs)
        {
            using (var dialog = new WarnMultipleBranchPolicyEditor(this))
            {
                if (dialog.ShowDialog(policyEditArgs.Parent) == DialogResult.OK)
                {
                    this.WarnWhenMultipleProjectsAreSelected = dialog.WarnWhenMultipleProjectsAreSelected;
                    this.WarnWhenMultipleBranchesAreSelected = dialog.WarnWhenMultipleBranchesAreSelected;
                    this.WarnWhenRootBranchIsSelected        = dialog.WarnWhenRootBranchIsSelected;
                    this.AllowDismiss = dialog.AllowDismiss;

                    return(true);
                }
            }

            return(false);
        }
        public override bool Edit(IPolicyEditArgs policyEditArgs)
        {
            using (var dialog = new WarnMultipleBranchPolicyEditor(this))
            {
                if (dialog.ShowDialog(policyEditArgs.Parent) == DialogResult.OK)
                {
                    this.WarnWhenMultipleProjectsAreSelected = dialog.WarnWhenMultipleProjectsAreSelected;
                    this.WarnWhenMultipleBranchesAreSelected = dialog.WarnWhenMultipleBranchesAreSelected;
                    this.WarnWhenRootBranchIsSelected = dialog.WarnWhenRootBranchIsSelected;
                    this.AllowDismiss = dialog.AllowDismiss;

                    return true;
                }
            }

            return false;
        }