예제 #1
0
		private void OnWebViewDownloadCompleted(Object sender, DownloadEventArgs e)
		{
			TabControl.Enabled = true;
			FormProgress.CloseProgress();
			using (var formComplete = new FormFileDownloadComplete(e.Item.FullPath))
			{
				formComplete.StartPosition=FormStartPosition.CenterScreen;
				formComplete.ShowDialog();
			}
		}
예제 #2
0
		private void OnWebViewDownloadCompleted(object sender, DownloadEventArgs e)
		{
			FormMain.Instance.ResumePages();
			FormDownloadProgress.CloseProgress();
			if (".MP4".Equals(Path.GetExtension(e.Item.FullPath), StringComparison.OrdinalIgnoreCase))
			{
				if (HandleVideoDownloaded(e.Item.FullPath))
					return;
			}
			using (var formComplete = new FormFileDownloadComplete(e.Item.FullPath))
			{
				formComplete.ShowDialog(FormMain.Instance);
			}
		}