예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
         }
     }
 }