public void AddMessage(string aMessage) { DispatcherHandler.BeginInvoke(() => { if (String.IsNullOrWhiteSpace(aMessage)) { return; } mOutputWindow.Write(aMessage); }); }
public void AddMessage(string aMessage) { UIUpdater.Invoke(() => { if (String.IsNullOrWhiteSpace(aMessage)) { return; } mOutputWindow.Write(aMessage); }); }
public void AddMessage(string aMessage) { if (String.IsNullOrWhiteSpace(aMessage)) { return; } using (OutputWindow outputWindow = new OutputWindow(mDte)) { mDispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => { outputWindow.Write(aMessage); })); } }