Ejemplo n.º 1
0
        /// <summary>
        /// Show 작업과 나머지 모든 창을 모두 닫습니다.
        /// 또한, 지정된 시간만큼 보여줍니다.
        /// </summary>
        public void ShowTime(int VisibleTime)
        {
            while (puw.Count > 0)
            {
                PopUpWindow pw = puw.Pop();

                if (pw != this)
                {
                    pw.Close();
                }
            }
            puw.Push(this);

            this.Show();
            Thread thr = new Thread(() =>
            {
                Dispatcher.Invoke(new Action(delegate { AppearWindow(); }));

                Thread.Sleep(VisibleTime);

                Dispatcher.Invoke(new Action(delegate { DisAppearWindow(); }));
            });

            thr.Start();
        }
Ejemplo n.º 2
0
 public static void AllWindowClose()
 {
     while (puw.Count > 0)
     {
         PopUpWindow pw = puw.Pop();
         pw.Dispatcher.Invoke(new Action(delegate { pw.Close(); }));
     }
 }