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(); } }
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(); } }