Esempio n. 1
0
 private void newMediaTypeBtn_Click(object sender, EventArgs e)
 {
     NewItemForm form = new NewItemForm();
     form.Message = "New Type";
     form.Text = "Create New Media Type";
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         DataLayer.CreateMediaType(form.Item, form.Item);
         LoadMediaTypes();
     }
 }
Esempio n. 2
0
 private void newFieldBtn_Click(object sender, EventArgs e)
 {
     NewItemForm form = new NewItemForm();
     form.Message = "New Field";
     form.Text = "Create New Field";
     if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         DataLayer.CreateMetadataName(form.Item);
         LoadMetadataNames();
         UpdateCheckBoxes();
     }
 }