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