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