示例#1
0
		//=========================================================================================
		public void Init(TextFinder finder, List<string> listSearch)
		{
			this.Finder = finder;
			this.ListSearch = listSearch;
			
			if (this.ListSearch == null || this.ListSearch.Count == 0)
				return;

			this.comboFind.Items.AddRange(listSearch.ToArray());
			this.comboFind.SelectedIndex = 0;
		}
示例#2
0
		public void ShowFind()
		{
			FindForm findForm = new FindForm();

			if (this.Finder == null)
				this.Finder = new TextFinder(this);
			if (listSearch == null)
				listSearch = new List<string>();

			findForm.Init(this.Finder, listSearch);

			findForm.Show(this);
		}