Inheritance: DialogForm
Exemplo n.º 1
0
        public HResult OpenDialog(NiFindOptions options, NiFindOptions optionsMask)
        {
            try
            {
                if (_form != null && _form.IsDisposed)
                    _form = null;

                bool show = _form == null;

                if (_form == null)
                {
                    // We need to set the site early because SetOptions depends
                    // on this.

                    _form = new FindForm
                    {
                        Site = new SiteProxy(this)
                    };
                }

                _form.SetOptions(options, optionsMask);

                if (show)
                    _form.Show(((INiEnv)GetService(typeof(INiEnv))).MainWindow);
                else
                    _form.Activate();

                return HResult.OK;
            }
            catch (Exception ex)
            {
                return ErrorUtil.GetHResult(ex);
            }
        }
Exemplo n.º 2
0
        public HResult OpenDialog(NiFindOptions options, NiFindOptions optionsMask)
        {
            try
            {
                if (_form != null && _form.IsDisposed)
                {
                    _form = null;
                }

                bool show = _form == null;

                if (_form == null)
                {
                    // We need to set the site early because SetOptions depends
                    // on this.

                    _form = new FindForm
                    {
                        Site = new SiteProxy(this)
                    };
                }

                _form.SetOptions(options, optionsMask);

                if (show)
                {
                    _form.Show(((INiEnv)GetService(typeof(INiEnv))).MainWindow);
                }
                else
                {
                    _form.Activate();
                }

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Exemplo n.º 3
0
 public View(FindForm form)
 {
     _form = form;
 }
Exemplo n.º 4
0
 public View(FindForm form)
 {
     _form = form;
 }