-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
PromptEventArgs.cs
47 lines (37 loc) · 1016 Bytes
/
PromptEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Speech.Synthesis
{
public abstract class PromptEventArgs : AsyncCompletedEventArgs
{
#region Constructors
internal PromptEventArgs(Prompt prompt) : base(prompt.Exception, prompt.Exception != null, prompt)
{
_prompt = prompt;
}
#endregion
#region public Properties
// Use Add* naming convention.
public Prompt Prompt
{
get
{
return _prompt;
}
}
#endregion
#region Private Fields
private Prompt _prompt;
#endregion
}
public class SpeakStartedEventArgs : PromptEventArgs
{
#region Constructors
internal SpeakStartedEventArgs(Prompt prompt)
: base(prompt)
{
}
#endregion
}
}