Ejemplo n.º 1
0
            public HResult Show()
            {
                try
                {
                    VerifyNotDisposed();

                    if (_shown)
                    {
                        _owner.IsHidden = false;
                        _owner.Show();
                    }
                    else
                    {
                        _shown = true;

                        ((NiEnv)_owner.GetService(typeof(INiEnv))).MainForm.ShowContent(_owner);
                    }

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Ejemplo n.º 2
0
            public Proxy(DockContent owner)
            {
                _owner = owner;
                _env   = (NiEnv)_owner.GetService(typeof(INiEnv));

                if ((owner.DockAreas & WeifenLuo.WinFormsUI.Docking.DockAreas.Document) != 0)
                {
                    _properties[(int)NiFrameProperty.Type] = NiFrameType.Document;
                }
                else
                {
                    _properties[(int)NiFrameProperty.Type] = NiFrameType.Tool;
                }
            }
Ejemplo n.º 3
0
            public Proxy(DockContent owner)
            {
                _owner = owner;
                _env = (NiEnv)_owner.GetService(typeof(INiEnv));

                if ((owner.DockAreas & WeifenLuo.WinFormsUI.Docking.DockAreas.Document) != 0)
                    _properties[(int)NiFrameProperty.Type] = NiFrameType.Document;
                else
                    _properties[(int)NiFrameProperty.Type] = NiFrameType.Tool;
            }