-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVistaTaskDialogNotificationArgs.cs
111 lines (98 loc) · 3.58 KB
/
VistaTaskDialogNotificationArgs.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//------------------------------------------------------------------
// <summary>
// A P/Invoke wrapper for TaskDialog. Usability was given preference to perf and size.
// </summary>
//
// <remarks/>
//------------------------------------------------------------------
namespace PSTaskDialog
{
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
/// <summary>
/// Arguments passed to the TaskDialog callback.
/// </summary>
public class VistaTaskDialogNotificationArgs
{
/// <summary>
/// What the TaskDialog callback is a notification of.
/// </summary>
private VistaTaskDialogNotification notification;
/// <summary>
/// The button ID if the notification is about a button. This a DialogResult
/// value or the ButtonID member of a TaskDialogButton set in the
/// TaskDialog.Buttons or TaskDialog.RadioButtons members.
/// </summary>
private int buttonId;
/// <summary>
/// The HREF string of the hyperlink the notification is about.
/// </summary>
private string hyperlink;
/// <summary>
/// The number of milliseconds since the dialog was opened or the last time the
/// callback for a timer notification reset the value by returning true.
/// </summary>
private uint timerTickCount;
/// <summary>
/// The state of the verification flag when the notification is about the verification flag.
/// </summary>
private bool verificationFlagChecked;
/// <summary>
/// The state of the dialog expando when the notification is about the expando.
/// </summary>
private bool expanded;
/// <summary>
/// What the TaskDialog callback is a notification of.
/// </summary>
public VistaTaskDialogNotification Notification
{
get { return this.notification; }
set { this.notification = value; }
}
/// <summary>
/// The button ID if the notification is about a button. This a DialogResult
/// value or the ButtonID member of a TaskDialogButton set in the
/// TaskDialog.Buttons member.
/// </summary>
public int ButtonId
{
get { return this.buttonId; }
set { this.buttonId = value; }
}
/// <summary>
/// The HREF string of the hyperlink the notification is about.
/// </summary>
public string Hyperlink
{
get { return this.hyperlink; }
set { this.hyperlink = value; }
}
/// <summary>
/// The number of milliseconds since the dialog was opened or the last time the
/// callback for a timer notification reset the value by returning true.
/// </summary>
public uint TimerTickCount
{
get { return this.timerTickCount; }
set { this.timerTickCount = value; }
}
/// <summary>
/// The state of the verification flag when the notification is about the verification flag.
/// </summary>
public bool VerificationFlagChecked
{
get { return this.verificationFlagChecked; }
set { this.verificationFlagChecked = value; }
}
/// <summary>
/// The state of the dialog expando when the notification is about the expando.
/// </summary>
public bool Expanded
{
get { return this.expanded; }
set { this.expanded = value; }
}
}
}