private void tSMISearch_Click(object sender, EventArgs e) { FormSASearch findForm = GetFindForm(); findForm.Activate(); findForm.Show(); }
private FormSASearch GetFindForm() { foreach (Form item in this.OwnedForms) { if (item is FormSASearch) { return((FormSASearch)item); } } FormSASearch form = new FormSASearch(this); form.LineSelectionChanged += new SelectInTreeEventHandler(form_LineSelectionChanged); return(form); }