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

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

            EditItem(dialog.Item);
        }
Esempio n. 3
0
        public void Edit()
        {
            var dialog = new NewFilterDialog(this.Module, this.SelectedItem, this);

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

            this.EditItem(dialog.Item);
        }