private void AddPropertyButton_Click(object sender, EventArgs e) { string propertyValue = ValueTextBox.Text; Property selectedProperty = propertyController.GetPropertyByTitle(currentlySelectedItem.Text); if (propertyController.ValidateDataType(selectedProperty.Type, propertyValue)) { FileProperty newFileProperty = filePropertyController.CreateFileProperty(workingFile.Id, selectedProperty.Id, propertyValue); filePropertyController.AddFilePropertyToFile(newFileProperty); parent.UpdateData(); } }
Property InterfaceProperty.GetPropertyByTitle(string title) { return(propertyController.GetPropertyByTitle(title)); }