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