프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkusAutoUpdate / src / NetSparkle / Events / DownloadInstallEventArgs.cs @ d8f5045e

이력 | 보기 | 이력해설 | 다운로드 (1.37 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

    
7
namespace NetSparkleUpdater.Events
8
{
9
    /// <summary>
10
    /// Event called when the download/install window closes
11
    /// </summary>
12
    /// <param name="sender">Sender of this event</param>
13
    /// <param name="args">DownloadInstallArgs with info on whether to install or not</param>
14
    public delegate void DownloadInstallEventHandler(object sender, DownloadInstallEventArgs args);
15

    
16
    /// <summary>
17
    /// Args sent via the DownloadInstallEventHandler when the download/install window closes
18
    /// </summary>
19
    public class DownloadInstallEventArgs : EventArgs
20
    {
21
        /// <summary>
22
        /// Whether or not the listener should perform the installation process
23
        /// </summary>
24
        public bool ShouldInstall { get; set; }
25

    
26
        /// <summary>
27
        /// True if the download/install event was already handled; false otherwise
28
        /// </summary>
29
        public bool WasHandled { get; set; }
30

    
31
        /// <summary>
32
        /// Constructor for DownloadInstallArgs
33
        /// </summary>
34
        /// <param name="shouldInstall">True if the listener should start the download process; false otherwise</param>
35
        public DownloadInstallEventArgs(bool shouldInstall) : base()
36
        {
37
            ShouldInstall = shouldInstall;
38
        }
39
    }
40
}
클립보드 이미지 추가 (최대 크기: 500 MB)