Exemplo n.º 1
0
 private static void ClearMemory()
 {
     Confirm             = null;
     Choice              = null;
     PinWindow           = null;
     Closing             = null;
     BalanceWindow       = null;
     AdvWithdrawWindow   = null;
     ReceiptWindow       = null;
     ReceiptWindow       = null;
     ReceiptWindow       = null;
     PleaseWaitWindow    = null;
     ThanksGoodbyeWindow = null;
     ErrorOccurredWindow = null;
     Return              = null;
 }
Exemplo n.º 2
0
        public static void OpenErrorOccurredWindow()
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                Window x = GetWindow("ErrorOccurredWindow");

                if (x != null)
                {
                    x.Activate();
                }
                else
                {
                    ErrorOccurredWindow = new ErrorOccurredWindow();
                    ErrorOccurredWindow.Show();
                }
            }));
        }