Exemple #1
0
        protected override void OnActivated(EventArgs e)
        {
            if (pshow != null)
            {
                pshow.Close();
                pshow = null;
            }

            base.OnActivated(e);
        }
Exemple #2
0
        protected override void OnDeactivated(EventArgs e)
        {
            if (pshow == null && !this.windowClosed)
            {
                pshow = new PercentShow();
                pshow.Show();
            }

            base.OnDeactivated(e);
        }