public virtual void ShowPad(IPadContent content)
 {
     if (layout != null)
     {
         layout.ShowPad(content);
     }
 }
示例#2
0
        public virtual void ShowPad(PadDescriptor content)
        {
            PadContentCollection.Add(content);

            if (layout != null)
            {
                layout.ShowPad(content);
            }
        }
示例#3
0
        public void ShowPad(FormsDesigner.IPadContent content)
        {
            PadContentCollection.Add(content);

            if (_layout != null)
            {
                _layout.ShowPad(content);
            }
        }
示例#4
0
        public void ShowPad(PadDescriptor content)
        {
            if (content == null)
            {
                throw new ArgumentNullException("content");
            }
            PadContentCollection.Add(content);

            if (layout != null)
            {
                layout.ShowPad(content);
            }
        }
示例#5
0
        public DefaultWorkbench()
        {
            Text = "我的SD插件框架";
            Icon = ResourceService.GetIcon("htc_sense_footprint_icon");
            //Icon = ResourceService.GetIcon("Icons.SharpDevelopIcon");

            StartPosition = FormStartPosition.Manual;
            _NormalBounds = PropertyService.Get <Rectangle>(_BoundProperty, new Rectangle(60, 80, 640, 480));
            Bounds        = _NormalBounds;
            bool bMax = PropertyService.Get <bool>(_WindowIsMaximized, false);

            if (bMax)
            {
                _WindowState = FormWindowState.Maximized;
                WindowState  = FormWindowState.Maximized;
            }
            _FullScreen = PropertyService.Get <bool>(_WindowIsFullScreen, false);
            if (_FullScreen)
            {
                FormBorderStyle = FormBorderStyle.None;
                WindowState     = FormWindowState.Maximized;
            }

            AllowDrop = true;

            PadDescriptor.BringPadToFrontEvent += delegate(PadDescriptor padDesc)
            {
                foreach (PadDescriptor pd in PadContentCollection)
                {
                    if (pd.Equals(padDesc))
                    {
                        layout.ShowPad(padDesc, true);
                        return;
                    }
                    // ShowPad(padDesc);--2013.2.4调整位置
                }
                ShowPad(padDesc);
            };
        }
示例#6
0
        public DefaultWorkbench()
        {
            Text = "MapToolkit";
            Icon = ResourceService.GetIcon("Satellite");

            StartPosition = FormStartPosition.Manual;
            _NormalBounds = PropertyService.Get <Rectangle>(_BoundProperty, new Rectangle(60, 80, 640, 480));
            Bounds        = _NormalBounds;
            bool bMax = PropertyService.Get <bool>(_WindowIsMaximized, false);

            if (bMax)
            {
                _WindowState = FormWindowState.Maximized;
                WindowState  = FormWindowState.Maximized;
            }
            _FullScreen = PropertyService.Get <bool>(_WindowIsFullScreen, false);
            if (_FullScreen)
            {
                FormBorderStyle = FormBorderStyle.None;
                WindowState     = FormWindowState.Maximized;
            }

            AllowDrop = true;

            PadDescriptor.BringPadToFrontEvent += delegate(PadDescriptor padDesc)
            {
                for (int i = 0; i < PadContentCollection.Count; i++)
                {
                    PadDescriptor pd = PadContentCollection[i];
                    if (pd.Equals(padDesc))
                    {
                        layout.ShowPad(padDesc, true);
                        return;
                    }
                    ShowPad(padDesc);
                }
            };
        }