private void UpdaterUtilities_UpdateResponse(object sender, UpdaterUtilities.UpdateResponseEventArgs e)
        {
            var showDialog = (bool)e.UserToken;

            if (e.Error == null)
            {
                var current = AppUtils.GetVersion().ToVersion();

                if (e.LatestVersion > current)
                {
                    var result = CustomMessageBox.Show(Properties.Resources.Update_available_message, Properties.Resources.Update_available, MessageBoxButton.YesNo, MessageBoxImage.Information);

                    if (result == MessageBoxResult.Yes)
                    {
                        Process.Start(e.Url.ToString());
                    }
                }

                else if (showDialog)
                {
                    CustomMessageBox.Show(
                        Properties.Resources.No_updates_available_message,
                        Properties.Resources.Updates);
                }
            }

            else
            {
                Logging.GetFileLogger().Log(Level.Error, e.Error, suppressEvents: true);

                if (showDialog)
                {
                    CustomMessageBox.Show(
                        Properties.Resources.Update_error_messsage,
                        Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }

            btnUpdateCheck.IsEnabled = true;
        }
        private void UpdaterUtilities_UpdateResponse(object sender, UpdaterUtilities.UpdateResponseEventArgs e)
        {
            var showDialog = (bool)e.UserToken;

            if (e.Error == null)
            {
                var current = GetVersion().ToVersion();

                if (e.LatestVersion > current)
                {
                    var result = MessageBox.Show("A new update is available, would you like to download it?", "Update Available", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

                    if (result == DialogResult.Yes)
                    {
                        Process.Start(e.Url.ToString());
                    }
                }

                else if (showDialog)
                {
                    MessageBox.Show("There are no updates available.", "No Updates", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }

            else
            {
                Logging.GetFileLogger().Log(Level.Error, e.Error, suppressEvents: true);

                if (showDialog)
                {
                    MessageBox.Show("There was an error while checking for updates.", "Update Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }

            btnUpdatecheck.Enabled = true;
        }