Exemple #1
0
        public void Edit()
        {
            using var dialog = new NewCachingDialog(Module, SelectedItem, this);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            EditItem(dialog.Item);
        }
Exemple #2
0
        public void Add()
        {
            using var dialog = new NewCachingDialog(Module, null, this);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            AddItem(dialog.Item);
        }