private void Dispose() { _Actions = null; if (_TimerForPostTimeOut != null) { _TimerForPostTimeOut = null; } if (_Timer != null) { _Timer = null; } _WaitWindow = null; }
public static bool? OpenDialogForPost(Window Owner, Action[] Actions, int MillisecondsTimeout) { if (_WaitWindow == null) { _WaitWindow = new WaitWindow(Owner, Actions, true, MillisecondsTimeout); return _WaitWindow.ShowDialog(); } else { _WaitWindow.Topmost = true; _WaitWindow.Owner = Owner; _WaitWindow._Actions = Actions; _WaitWindow._IsPost = true; _WaitWindow._MillisecondsTimeout = MillisecondsTimeout; return _WaitWindow.ShowDialog(); } }
public static bool? OpenDialogForSend(Window Owner, Action[] Actions) { if (_WaitWindow == null) { _WaitWindow = new WaitWindow(Owner, Actions, false); return _WaitWindow.ShowDialog(); } else { _WaitWindow.Topmost = true; _WaitWindow.Owner = Owner; _WaitWindow._Actions = Actions; _WaitWindow._IsPost = false; return _WaitWindow.ShowDialog(); } }