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; }
public static void OpenClosing() { Application.Current.Dispatcher.Invoke(new Action(() => { Window y = GetWindow("Closing"); if (y != null) { y.Activate(); } else { Closing = new Closing(); Closing.Show(); } })); }