Example #1
0
 /// <summary>
 /// The show waiting window.
 /// </summary>
 public void ShowWaitingWindow()
 {
     this.beginTime     = DateTime.Now;
     this.waitingWindow = new WaitingWindow {
         Owner = Application.Current.MainWindow
     };
     this.waitingWindow.ShowDialog();
 }
Example #2
0
        /// <summary>
        /// The close waiting window.
        /// </summary>
        public void CloseWindow()
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();

            this.Dispatcher.BeginInvoke(
                DispatcherPriority.Normal,
                (ThreadStart) delegate
            {
                if (null != this.waitingWindow)
                {
                    this.waitingWindow.Close();
                    this.waitingWindow = null;
                }
            });
        }