프로젝트

일반

사용자정보

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

markus / MarkusAutoUpdate / src / NetSparkle.UI.WPF / CheckingForUpdatesWindow.xaml.cs @ 299f2c11

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

1
using NetSparkleUpdater.Interfaces;
2
using System;
3
using System.Collections.Generic;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
7
using System.Windows;
8
using System.Windows.Controls;
9
using System.Windows.Data;
10
using System.Windows.Documents;
11
using System.Windows.Input;
12
using System.Windows.Media;
13
using System.Windows.Media.Imaging;
14
using System.Windows.Navigation;
15
using System.Windows.Shapes;
16

    
17
namespace NetSparkleUpdater.UI.WPF
18
{
19
    /// <summary>
20
    /// Interaction logic for CheckingForUpdatesWindow.xaml
21
    /// </summary>
22
    public partial class CheckingForUpdatesWindow : Window, ICheckingForUpdates
23
    {
24
        /// <inheritdoc/>
25
        public event EventHandler UpdatesUIClosing;
26

    
27
        /// <summary>
28
        /// Create the window that tells the user that SparkleUpdater is checking
29
        /// for updates
30
        /// </summary>
31
        public CheckingForUpdatesWindow()
32
        {
33
            InitializeComponent();
34
            Closing += CheckingForUpdatesWindow_Closing;
35
        }
36

    
37
        private void CheckingForUpdatesWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
38
        {
39
            Closing -= CheckingForUpdatesWindow_Closing;
40
            UpdatesUIClosing?.Invoke(sender, new EventArgs());
41
        }
42

    
43
        void ICheckingForUpdates.Close()
44
        {
45
            Close();
46
        }
47

    
48
        void ICheckingForUpdates.Show()
49
        {
50
            Show();
51
        }
52

    
53
        private void CancelButton_Click(object sender, RoutedEventArgs e)
54
        {
55
            Close();
56
        }
57
    }
58
}
클립보드 이미지 추가 (최대 크기: 500 MB)