/// <summary> /// Trap the double click to sign the selection /// </summary> /// <param name="sender">Who sent the event</param> /// <param name="e">What parameters where sent</param> private void OnDoubleClick(object sender, System.EventArgs e) { if ( lstLDAP.SelectedItems.Count > 0 ) { LdapSearchResult ee = lstLDAP.SelectedItems[0].Tag as LdapSearchResult; if ( OnSelected != null ) { LdapSearchEventArgs args = new LdapSearchEventArgs(ee, true); OnSelected(this,args); } } }
/// <summary> /// This method is used when the item has been selected on the list /// </summary> /// <param name="sender">Who sent the parameter</param> /// <param name="e">What parameters where sent</param> private void OnMemberSelected(object sender, LdapSearchEventArgs e) { if ( m_found.ContainsKey(e.Entry.DisplayName) == false ) { this.txtImported.Text += e.Entry.DisplayName + ";"; m_found.Add(e.Entry.DisplayName,e.Entry); } }