public void ShowDownloadContentTooltip() { Form form = new DownloadContentTooltip(); form.Show(); form.Refresh(); bool isClosed = StackTraceExtensions.StartedFromNCrunchOrNunitConsole; form.Closed += (sender, args) => isClosed = true; while (!isClosed) Application.DoEvents(); form.Close(); }
public void ShowDownloadContentTooltip() { Form form = new DownloadContentTooltip(); form.Show(); form.Refresh(); bool isClosed = StackTraceExtensions.StartedFromNCrunchOrNunitConsole; form.Closed += (sender, args) => isClosed = true; while (!isClosed) { Application.DoEvents(); } form.Close(); }