/// <summary>
		/// Initialise the internal members
		/// </summary>
		public LdapSearchControl()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();
			name.Text = SmartResourceManager.GetString("LSC_001",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			name.Width = 150;
			bustelnum.Text = SmartResourceManager.GetString("LSC_002",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			bustelnum.Width = 150;
			title.Text = SmartResourceManager.GetString("LSC_003",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			title.Width = 100;
			depart.Text = SmartResourceManager.GetString("LSC_004",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			depart.Width = 100;
			office.Text = SmartResourceManager.GetString("LSC_006",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			office.Width = 100;
			label1.Text = SmartResourceManager.GetString("LSC_005",
				"Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearchControl)),
				SmartResourceManager.CurrentCulture);
			lstLDAP.Columns.AddRange( new ColumnHeader[] { name, bustelnum, office, title, depart });
			m_selected = new LdapSearchResultCollection();
			m_showGroups = true;
		}
		/// <summary>
		/// This constructor will initialise the form correctly.
		/// </summary>
		/// <param name="ldapServer">The server name to use</param>
		public LdapSearcherScreen(ILdapSearchEngine ldapServer)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			m_ldapServer = ldapServer;
			m_resources = new SmartResourceManager("Workshare.Common.Control.Resources", Assembly.GetAssembly(typeof(LdapSearcherScreen)));
			this.Text =m_resources.GetString("LSC_007",
				SmartResourceManager.CurrentCulture);
			this.groupBox1.Text = m_resources.GetString("LSC_009",
				SmartResourceManager.CurrentCulture);
			this.btnImport.Text = m_resources.GetString("LSC_008",
				SmartResourceManager.CurrentCulture);
			this.btnOK.Text = m_resources.GetString("LSC_010",
				SmartResourceManager.CurrentCulture);
			this.btnCancel.Text = m_resources.GetString("LSC_011",
				SmartResourceManager.CurrentCulture);

			string title = m_resources.GetString("LSS_TITLE",
				SmartResourceManager.CurrentCulture);

			StringBuilder sb = new StringBuilder();
			sb.AppendFormat("LDAP_{0}", m_ldapServer.EngineType);
			string ldap = m_resources.GetString(sb.ToString(),
				SmartResourceManager.CurrentCulture);
			sb.Remove(0,sb.Length);
			if ( ldap.Length == 0 )
				ldap = m_ldapServer.EngineType.ToString();
			sb.AppendFormat(title, ldap);
			this.Text = sb.ToString();

			m_found = new Hashtable();
			m_selected = new LdapSearchResultCollection();
			m_ldapControl.LdapServer = m_ldapServer;

			m_ldapControl.OnSelected +=new LdapSearchEventHandler(OnMemberSelected);
		}