Пример #1
0
        private async void HandleRecorderDataFileWritten(object sender, FileGeneratedEventArgs e)
        {
            //New files are always on bottom, so just add it to the queue
            var token = await FileOperations.GetToken(e.Filepath);

            _queue.Add(new UploadQueueItem(token));
        }
 private void OnFileGenerated(object sender, FileGeneratedEventArgs fileInfo)
 {
     Invoke(new FileGeneratedHandler(FileGenerated), new object[] {fileInfo});
 }
        private void FileGenerated(FileGeneratedEventArgs fileInfo)
        {
            typesGenerated++;
            fileGenerationProgress.Increment(1);
            fileGenerationProgress.Refresh();

            fileGenerationStatusText.Text = fileInfo.FileName + " is generated.";
            fileGenerationStatusText.Refresh();
        }