//========================================================================== private static void ShowUpdateDialog(UpdateData data) { UpdateDialog dialog = new UpdateDialog(); dialog.UpdateData = data; dialog.ShowDialog(); }
//========================================================================== private static void HandleNewVersion(Thread targetThread, UpdateData updateData) { OutlinerGUP.Instance.Log.FormatDebug("Version {0} available!", updateData.NewVersion); Dispatcher dispatcher = Dispatcher.FromThread(targetThread); dispatcher.SyncInvoke(() => ShowUpdateDialog(updateData)); }