예제 #1
0
        private void tSMISearch_Click(object sender, EventArgs e)
        {
            FormSASearch findForm = GetFindForm();

            findForm.Activate();
            findForm.Show();
        }
예제 #2
0
        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);
        }