Пример #1
0
        private SearchForm(EnumExportForm parent)
        {
            _parent  = parent;
            _content = _parent.txtContent.Text;

            InitializeComponent();
        }
Пример #2
0
 public static SearchForm GetInstance(EnumExportForm parent)
 {
     //判断是否存在该窗体,或时候该字窗体是否被释放过,如果不存在该窗体,则 new 一个新窗体
     if (_instance == null || _instance.IsDisposed)
     {
         _instance = new SearchForm(parent);
     }
     return(_instance);
 }