markus / MarkusAutoUpdate / src / NetSparkle / Events / UpdateResponseEventArgs.cs @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (1.17 KB)
1 | d8f5045e | taeseongkim | using NetSparkleUpdater.Enums; |
---|---|---|---|
2 | using System; |
||
3 | using System.Collections.Generic; |
||
4 | using System.Linq; |
||
5 | using System.Text; |
||
6 | using System.Threading.Tasks; |
||
7 | |||
8 | namespace NetSparkleUpdater.Events |
||
9 | { |
||
10 | /// <summary> |
||
11 | /// Event arguments for when a user responds to an available update UI |
||
12 | /// </summary> |
||
13 | public class UpdateResponseEventArgs : EventArgs |
||
14 | { |
||
15 | /// <summary> |
||
16 | /// The user's response to the update |
||
17 | /// </summary> |
||
18 | public UpdateAvailableResult Result { get; set; } |
||
19 | |||
20 | /// <summary> |
||
21 | /// The AppCastItem that the user is responding to an update notice for |
||
22 | /// </summary> |
||
23 | public AppCastItem UpdateItem { get; set; } |
||
24 | |||
25 | /// <summary> |
||
26 | /// Constructor for UpdateResponseArgs that allows for easy setting |
||
27 | /// of the result |
||
28 | /// </summary> |
||
29 | /// <param name="result">User's response of type UpdateAvailableResult</param> |
||
30 | /// <param name="item">Item that the user is responding to an update message for</param> |
||
31 | public UpdateResponseEventArgs(UpdateAvailableResult result, AppCastItem item) : base() |
||
32 | { |
||
33 | Result = result; |
||
34 | UpdateItem = item; |
||
35 | } |
||
36 | } |
||
37 | } |