Esempio n. 1
0
        public BrowseUpdates()
        {
            UpdateManager = new UpdateMan(this);
            InitializeComponent();
            EventManager.RegisterClassHandler(typeof(Window), Keyboard.KeyUpEvent, new KeyEventHandler(KeyUp), true);

            lblInfo.Content = Properties.strings.BrowseUpdateAvailable;

            Refresh();
        }
Esempio n. 2
0
        public Downloader(DownloaderItem dlItem)
        {
            UpdateManager = new UpdateMan(this);

            EventManager.RegisterClassHandler(typeof(Window), Keyboard.KeyUpEvent, new KeyEventHandler(KeyUp), true);

            downloadItem = dlItem;

            if (Directory.Exists(currentPath + UpdateManager.updateFolder))
            {
                Directory.Delete(currentPath + UpdateManager.updateFolder, true);
            }

            Directory.CreateDirectory(currentPath + UpdateManager.updateFolder);


            InitializeComponent();
        }
Esempio n. 3
0
 private void updatesBtn_Click(object sender, EventArgs e)
 {
     UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle);
     Close();
 }