private FormSAConfig GetFormSAConfig() { foreach (Form item in this.OwnedForms) { if (item is FormSAConfig) { return((FormSAConfig)item); } } FormSAConfig form = new FormSAConfig(); return(form); }
private void OpenFormSAConfig(PoemLine line) { FormSAConfig form = GetFormSAConfig(); form.Owner = this; if (line != null) { form.SelectInTree(line); } form.Activate(); form.Show(); }