public BrowseUpdates() { UpdateManager = new UpdateMan(this); InitializeComponent(); EventManager.RegisterClassHandler(typeof(Window), Keyboard.KeyUpEvent, new KeyEventHandler(KeyUp), true); lblInfo.Content = Properties.strings.BrowseUpdateAvailable; Refresh(); }
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(); }
private void updatesBtn_Click(object sender, EventArgs e) { UpdateMan.CheckForUpdates(true, TopMost, Owner.Handle); Close(); }