/// <summary> /// Showes process results. /// </summary> /// <param name="storage">Imported objects storage.</param> /// <param name="errorInAdd">Detected error in store imported object procedure flag.</param> private void _PopulateProcessResults(bool errorInAdd, Storage storage) { // initialize status of process App currentApp = App.Current; string statusRscName = (errorInAdd) ? "ImportProcessFailed" : "ImportProcessDone"; string statusText = currentApp.GetString(statusRscName, _informer.ObjectName); // update status currentApp.MainWindow.StatusBar.SetStatus(_informer.ParentPage, statusText); if (errorInAdd) { // error in adding routine detected - show only status text currentApp.Messenger.AddMessage(MessageType.Error, statusText); } else { // successed process ending - show statistics var statisticCreator = new Informer(); statisticCreator.Inform(_importer, _geocoder, storage, statusText); } }