Catrobat.IDE.WindowsPhone.ExtendedSplash.TryAddProgram C# (CSharp) Method

TryAddProgram() private static method

private static TryAddProgram ( Stream programStream ) : System.Threading.Tasks.Task
programStream Stream
return System.Threading.Tasks.Task
        private static async Task TryAddProgram(Stream programStream)
        {
            ServiceLocator.NotifictionService.ShowToastNotification(
                        AppResourcesHelper.Get("Import_started"),
                        AppResourcesHelper.Get("Import_started"),
                        ToastDisplayDuration.Long);
            ServiceLocator.ProgramImportService.SetProgramStream(programStream);
            await ServiceLocator.ProgramImportService.TryImportWithStatusNotifications();
        }
    }