public void Add()
        {
            using var dialog = new NewRuleDialog(this.Module, null);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

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

            var newItem = dialog.Item;

            this.EditItem(newItem);
        }