Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        protected virtual void OnDownloadCompleted(DownloadComplete args)
        {
            EventHandler <DownloadComplete> eventHandle = DownloadCompleted;

            if (eventHandle != null)
            {
                eventHandle(this, args);
            }
        }