void DisplayUpdate(bool open, KopsikApi.KopsikUpdateViewItem view)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker) delegate { DisplayUpdate(open, view); });
                return;
            }
            if (open)
            {
                aboutWindowController.Show();
                aboutWindowController.BringToFront();
            }
            if (!view.IsUpdateAvailable)
            {
                return;
            }
            if (isUpgradeDialogVisible || aboutWindowController.Visible)
            {
                return;
            }
            isUpgradeDialogVisible = true;
            DialogResult dr = MessageBox.Show(
                "There's a new version of this app available (" + view.Version + ")." +
                Environment.NewLine + "Proceed with the download?",
                "New version available",
                MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            isUpgradeDialogVisible = false;
            if (DialogResult.Yes == dr)
            {
                Process.Start(view.URL);
            }
        }
 void DisplayUpdate(bool open, KopsikApi.KopsikUpdateViewItem view)
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker) delegate { DisplayUpdate(open, view); });
         return;
     }
     // FIXME:
 }
        void DisplayUpdate(bool open, KopsikApi.KopsikUpdateViewItem view)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker) delegate { DisplayUpdate(open, view); });
                return;
            }

            updateURL = view.URL;

            comboBoxChannel.Tag = "ignore";
            try
            {
                comboBoxChannel.Text = view.UpdateChannel;
            }
            finally
            {
                comboBoxChannel.Tag = null;
            }

            if (view.IsChecking)
            {
                buttonCheckingForUpdate.Enabled = false;
                comboBoxChannel.Enabled         = false;
                buttonCheckingForUpdate.Text    = "Checking for update..";
                return;
            }

            comboBoxChannel.Enabled = true;

            if (view.IsUpdateAvailable)
            {
                buttonCheckingForUpdate.Text = string.Format(
                    "Click here to download update! {0}", view.Version);
                buttonCheckingForUpdate.Enabled = true;
            }
            else
            {
                buttonCheckingForUpdate.Text    = "TogglDesktop is up to date.";
                buttonCheckingForUpdate.Enabled = false;
            }
        }
 void OnUpdate(bool open, ref KopsikApi.KopsikUpdateViewItem view)
 {
     DisplayUpdate(open, view);
 }