private void DownloadClient_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { //throw new NotImplementedException(); DownloadComplete args = new DownloadComplete(); args.IsSuccessful = File.Exists(Directory.GetCurrentDirectory() + "\\lsyt.exe"); OnDownloadCompleted(args); }
protected virtual void OnDownloadCompleted(DownloadComplete args) { EventHandler <DownloadComplete> eventHandle = DownloadCompleted; if (eventHandle != null) { eventHandle(this, args); } }