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