private void InvokeUpdateStatusBar(string statusText, Exception exception = null)
{
string datedStatusText = null;
if (!string.IsNullOrEmpty(statusText))
{
datedStatusText = string.Format("{0:G} - {1}", DateTime.Now, statusText);
}
var updateStatusBar = UpdateStatusBar;
if (updateStatusBar == null) return;
updateStatusBar(this, new UpdateStatusBarEventArgs { StatusText = datedStatusText, Exception = exception });
}