public void TextToSpeech(Guid documentId) { ProgressForm prForm = new ProgressForm(); ThreadPool.QueueUserWorkItem(new WaitCallback(DoTextToSpeech), new TextToSpeechInfo(documentId, prForm)); prForm.ShowDialog(MainForm); }
public void AddText(Guid documentId, string text) { ProgressForm prForm = new ProgressForm(); ThreadPool.QueueUserWorkItem(new WaitCallback(DoAddText), new AddTextInfo(documentId, text, prForm)); prForm.ShowDialog(MainForm); }