/// <summary>Hit when the user wants to merge their changes with the concurrent task.</summary>
        /// <param name="sender">btnConcurrencyMergeYes</param>
        /// <param name="e">RoutedEventArgs</param>
        private void btnConcurrencyMergeYes_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                e.Handled = true;
                //Get the client.
                ImportExportClient client = ((dynamic)sender).Tag as ImportExportClient;
                if (client != null)
                {
                    //Switch screens again...
                    this.display_SetOverlayWindow(this.panelSaving, System.Windows.Visibility.Visible);
                    this.display_SetOverlayWindow(this.panelError, System.Windows.Visibility.Hidden);
                    this.barSavingIncident.Value--;

                    //Re-launch the saving..
                    RemoteIncident incMerged = StaticFuncs.MergeWithConcurrency(this.save_GetFromFields(), this._Incident, this._IncidentConcurrent);

                    this._clientNumSaving++;
                    client.Incident_UpdateAsync(incMerged, this._clientNum++);
                }
            }
            catch (Exception ex)
            {
                Logger.LogMessage(ex, "btnConcurrencyMergeYes_Click()");
                MessageBox.Show(StaticFuncs.getCultureResource.GetString("app_General_UnexpectedError"), StaticFuncs.getCultureResource.GetString("app_General_ApplicationShortName"), MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
        /// <summary>Hit when we're finished connecting to the project.</summary>
        /// <param name="sender">ImportExportClient</param>
        /// <param name="e">Connection_ConnectToProjectCompletedEventArgs</param>
        private void clientSave_Connection_ConnectToProjectCompleted(object sender, Connection_ConnectToProjectCompletedEventArgs e)
        {
            try
            {
                const string METHOD = CLASS + "clientSave_Connection_ConnectToProjectCompleted()";
                Logger.LogTrace(METHOD + " Enter: " + this._clientNumSaving.ToString() + " running.");

                ImportExportClient client = (sender as ImportExportClient);
                this._clientNumSaving--;
                this.barSavingIncident.Value++;

                if (!e.Cancelled)
                {
                    if (e.Error == null)
                    {
                        if (e.Result)
                        {
                            //Get the new RemoteIncident
                            RemoteIncident newIncident = this.save_GetFromFields();

                            if (newIncident != null)
                            {
                                //Fire off our update calls.
                                this._clientNumSaving++;
                                client.Incident_UpdateAsync(newIncident, this._clientNum++);
                            }
                            else
                            {
                                //TODO: Show Error.
                                //Cancel calls.
                                this._clientNumSaving++;
                                client.Connection_DisconnectAsync(this._clientNum++);
                            }
                        }
                        else
                        {
                            //TODO: Show Error.
                            //Cancel calls.
                            this._clientNumSaving++;
                            client.Connection_DisconnectAsync(this._clientNum++);
                        }
                    }
                    else
                    {
                        //TODO: Show Error.
                        //Cancel calls.
                        this._clientNumSaving++;
                        client.Connection_DisconnectAsync(this._clientNum++);
                    }
                }

                //See if it's okay to reload.
                this.save_CheckIfOkayToLoad();

                Logger.LogTrace(METHOD + " Exit: " + this._clientNumSaving.ToString() + " left.");
            }
            catch (Exception ex)
            {
                Logger.LogMessage(ex, "clientSave_Connection_ConnectToProjectCompleted()");
                MessageBox.Show(StaticFuncs.getCultureResource.GetString("app_General_UnexpectedError"), StaticFuncs.getCultureResource.GetString("app_General_ApplicationShortName"), MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }