protected override void OnVisibleChanged(EventArgs e) { base.OnVisibleChanged(e); if (Visible) { Invalidate(); if (!DebugTool.IsDesignMode) { Sw = new ShadowWin(this, header); Sw.Show(this); } } }
public override void Refresh() { if (!DebugTool.IsDesignMode) { if (Sw != null) { Sw.Close(); } Sw = new ShadowWin(this, header); Sw.Show(this); } base.Refresh(); }