internal static void NotifyResponseRecieved() { lock (formLocker) { if (_currentForm == null) { return; } if (_currentForm.InvokeRequired) { _currentForm.Invoke(new Action(NotifyResponseRecieved)); return; } _currentForm.Close(); _currentForm = null; } }
internal static void WaitForServerResponse() { currentForm = new RemoteCallDialog(); currentForm.ShowDialog(); }