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