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 OpenBalanceWindow() { Application.Current.Dispatcher.Invoke(new Action(() => { Window c = GetWindow("BalanceWindow"); if (c != null) { c.Activate(); } else { BalanceWindow = new BalanceWindow(); BalanceWindow.Show(); } })); }