private void btnAdd_Click(object sender, System.EventArgs e) { OrganizationProperties organizationProperties = new OrganizationProperties { OrganizationId = this.m_organization.Id }; OrganizationPropertieAddChangeForm form = new OrganizationPropertieAddChangeForm(organizationProperties); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.UpdateBindingSource(); } }
private void btnChange_Click(object sender, System.EventArgs e) { OrganizationProperties organizationProperties = (this.bindingSource.get_Current() as OrganizationProperties) ?? OrganizationProperties.Null; if (organizationProperties != OrganizationProperties.Null) { OrganizationPropertieAddChangeForm form = new OrganizationPropertieAddChangeForm(organizationProperties); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.UpdateBindingSource(); } } }