private SearchForm(EnumExportForm parent) { _parent = parent; _content = _parent.txtContent.Text; InitializeComponent(); }
public static SearchForm GetInstance(EnumExportForm parent) { //判断是否存在该窗体,或时候该字窗体是否被释放过,如果不存在该窗体,则 new 一个新窗体 if (_instance == null || _instance.IsDisposed) { _instance = new SearchForm(parent); } return(_instance); }