public OrganizationsForm(Organization org, OrganizationHandler orgHandler, OrganizationsHandler orgsHandler) { this.InitializeComponent(); this.orgHandler = orgHandler; this.orgsHandler = orgsHandler; if (org != null) { System.Collections.Generic.List<Organization> list = new System.Collections.Generic.List<Organization> { org }; this.bsOrganizations.set_DataSource(list); } }
public SelectOrganizationsForm(ObjectList<Organization> orgs, OrganizationsHandler orgsHandler, string filter, bool isByUser) : this() { this.set_Font(Manager.WindowFont); this.orgsHandler = orgsHandler; if (orgs == null) { this.m_Organizations = new ObjectList<Organization>(); } else { this.m_Organizations = new ObjectList<Organization>(orgs); } this.selectOrganizations.SetFilter = filter; this.selectOrganizations.SelectedOrganizations = this.m_Organizations; this.selectOrganizations.IsByUser = isByUser; }