コード例 #1
0
 public void HidePopup()
 {
     if (this.form != null)
     {
         this.form.Close();
         this.form.Dispose();
         this.form = null;
     }
 }
コード例 #2
0
        /*[Browsable(false)]
         * public new Image BackgroundImage
         * {
         *  get { return base.BackgroundImage; }
         *  set { base.BackgroundImage = value; }
         * }
         *
         * [DefaultValue(typeof(ImageLayout), "None"), Browsable(false)]
         * public new ImageLayout BackgroundImageLayout
         * {
         *  get { return base.BackgroundImageLayout; }
         *  set { base.BackgroundImageLayout = value; }
         * }
         *
         * [Browsable(false)]
         * public new BorderStyle BorderStyle
         * {
         *  get { return base.BorderStyle; }
         *  set { base.BorderStyle = value; }
         * }
         *
         * [Browsable(false)]
         * public override Font Font
         * {
         *  get { return base.Font; }
         *  set { base.Font = value; }
         * }
         *
         * [Browsable(false)]
         * public override Color ForeColor
         * {
         *  get { return base.ForeColor; }
         *  set { base.ForeColor = value; }
         * }
         *
         * [DefaultValue(typeof(Size), "16, 16"), Browsable(false)]
         * public new Size MaximumSize
         * {
         *  get { return base.MaximumSize; }
         *  set { base.MaximumSize = value; }
         * }
         *
         * [DefaultValue(typeof(Size), "16, 16"),  Browsable(false)]
         * public new Size MinimumSize
         * {
         *  get { return base.MinimumSize; }
         *  set { base.MinimumSize = value; }
         * }
         *
         * [Browsable(false)]
         * public new Padding Padding
         * {
         *  get { return base.Padding; }
         *  set { base.Padding = value; }
         * }
         *
         * [Browsable(false)]
         * public new Size Size
         * {
         *  get { return base.Size; }
         *  set { base.Size = value; }
         * }
         *
         * [DefaultValue(0), Browsable(false)]
         * public new int TabIndex
         * {
         *  get { return base.TabIndex; }
         *  set { base.TabIndex = value; }
         * }
         *
         * [DefaultValue(false), Browsable(false)]
         * public new bool TabStop
         * {
         *  get { return base.TabStop; }
         *  set { base.TabStop = false; }
         * }*/

        #endregion

        #region Functions

        public void ShowPopup(Point location)
        {
            if (this.form == null)
            {
                this.form = new CornerBowlPopupForm(this, location);
            }
            else
            {
                this.form.Location = location;
            }
        }