Exemplo n.º 1
0
 private void IrregularForm_Load(object sender, EventArgs e)
 {
     if (!DesignMode)
     {
         Opacity         = 0;
         Skin            = new IrregularFormSkin(this); //创建皮肤层
         BackgroundImage = null;                        //去除控件层背景
         Skin.Show();                                   //显示皮肤层
         AnimateShow();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 窗体显示状态
 /// </summary>
 /// <param name="value"></param>
 public void Visibility(bool value)
 {
     if (value)
     {
         Show();
         Skin.Show();
     }
     else
     {
         Hide();
         Skin.Hide();
     }
 }
Exemplo n.º 3
0
        private void IrregularForm_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                Skin            = new IrregularFormSkin(this); //创建皮肤层
                BackgroundImage = null;                        //去除控件层背景
                Skin.Show();                                   //显示皮肤层

                //设置右键菜单
                if (ContextMenuStrip != null)
                {
                    Skin.ContextMenuStrip = ContextMenuStrip;
                }
            }
        }