advpanel.cs

来自「破解的飞信源代码」· CS 代码 · 共 46 行

CS
46
字号
namespace Imps.Client.Pc
{
    using System;
    using System.Windows.Forms;

    public class AdvPanel : ElementPanel
    {
        public Panel _panel;

        public AdvPanel(Panel panel)
        {
            base.HandleMouse = false;
            this._panel = panel;
        }

        public override void OnSizeChanged(int w, int h)
        {
            base.OnSizeChanged(w, h);
            this._panel.Location = base._location;
            this._panel.Size = base._size;
            if (this._size.IsEmpty)
            {
                this._panel.Visible = false;
            }
            else
            {
                this._panel.Visible = this.Visible;
            }
        }

        public bool Visible
        {
            get
            {
                return base.Visible;
            }
            set
            {
                base.Visible = value;
                this._panel.Visible = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?