void DBExtendedProperty_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (this.State == DBObjectState.Modified && this.Owner != null && this.Owner.Connection.Project != null) { DBObjectManager.CreateExtendedProperty(this.Owner, this.Name, "", this.Value); } }
private void dataGridView_properties_UserAddedRow(object sender, DataGridViewRowEventArgs e) { var prop = (DBExtendedProperty)e.Row.DataBoundItem; DBObjectManager.CreateExtendedProperty(prop.Owner, prop.Name, "", prop.Value); }