Пример #1
0
        public void Edit()
        {
            using var dialog = new NewMapItemDialog(Module, SelectedItem, this);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            EditItem(dialog.Item);
        }
Пример #2
0
        public void Add()
        {
            using var dialog = new NewMapItemDialog(Module, null, this);
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            AddItem(dialog.Item);
        }
Пример #3
0
        public void Edit()
        {
            var dialog = new NewMapItemDialog(this.Module, this.SelectedItem, this);

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

            this.EditItem(dialog.Item);
        }