public void AddDeny()
        {
            using var dialog = new NewRestrictionDialog(Module, false, this);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            AddItem(dialog.Item);
        }
Esempio n. 2
0
        public void AddAllow()
        {
            var dialog = new NewRestrictionDialog(Module, true, this);

            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            this.AddItem(dialog.Item);
        }