Ejemplo n.º 1
0
      //==========================================================================

      private static void ShowUpdateDialog(UpdateData data)
      {
         UpdateDialog dialog = new UpdateDialog();
         dialog.UpdateData = data;
         dialog.ShowDialog();
      }
Ejemplo n.º 2
0
      //==========================================================================

      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));
      }