Beispiel #1
0
        private void addObjButton_Click(object sender, EventArgs e)
        {
            ObjectTemplateForm objTemplateForm = new ObjectTemplateForm(mapInterface);

            if (objTemplateForm.ShowDialog() == DialogResult.OK)
            {
                mapInterface.AddObjectTemplate(objTemplateForm.objTemplate);
                UpdateObjectTemplateList();
                TriggerSave();
            }
        }
Beispiel #2
0
 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();
         }
     }
 }