private void btnAddMask_Click(object sender, System.EventArgs e) { SpOrgFreeAccountMask spOrgFreeAccountMask = new SpOrgFreeAccountMask(); SpOrg org = (this.bsSpOrg.get_Current() == null) ? SpOrg.Null : (this.bsSpOrg.get_Current() as SpOrg); spOrgFreeAccountMask.OrgId = org.Id; new SpOrgFreeAccountMaskAddChangeForm(spOrgFreeAccountMask).ShowDialog(this); org = (this.bsSpOrg.get_Current() == null) ? SpOrg.Null : (this.bsSpOrg.get_Current() as SpOrg); if (org == SpOrg.Null) { this.bsSpOrgFreeAccountMask.Clear(); } else { this.bsSpOrgFreeAccountMask.set_DataSource(SpOrgFreeAccountMask.FindByOrgId(org.Id)); this.bsSpOrgFreeAccountMask.set_Position(this.bsSpOrgFreeAccountMask.IndexOf(spOrgFreeAccountMask)); } }
public SpOrgFreeAccountMaskAddChangeForm(SpOrgFreeAccountMask spOrgFreeAccountMask) : this() { this.m_SpOrgFreeAccountMask = spOrgFreeAccountMask; }
public SpOrgFreeAccountMaskAddChangeForm() { this.m_SpOrgFreeAccountMask = new SpOrgFreeAccountMask(); this.InitializeComponent(); }