private void addObjButton_Click(object sender, EventArgs e) { ObjectTemplateForm objTemplateForm = new ObjectTemplateForm(mapInterface); if (objTemplateForm.ShowDialog() == DialogResult.OK) { mapInterface.AddObjectTemplate(objTemplateForm.objTemplate); UpdateObjectTemplateList(); TriggerSave(); } }
private void editButton_Click(object sender, EventArgs e) { if (objListView.SelectedItems.Count > 0) { objKey = objListView.Text; ObjectTemplateForm objTemplateForm = new ObjectTemplateForm(mapInterface, objKey); if (objTemplateForm.ShowDialog() == DialogResult.OK) { mapInterface.AddObjectTemplate(objTemplateForm.objTemplate); UpdateObjectTemplateList(); TriggerSave(); } } }