From 14ee8107e000baa719aa0541a0c1fb5c15a95de9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 21 Nov 2014 22:34:43 +0000 Subject: [PATCH] added cancel button --- Saviour Backup System/transferWindow.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Saviour Backup System/transferWindow.cs b/Saviour Backup System/transferWindow.cs index b59b743..9fe1e37 100644 --- a/Saviour Backup System/transferWindow.cs +++ b/Saviour Backup System/transferWindow.cs @@ -7,13 +7,14 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using CopyFiles; + namespace Saviour_Backup_System { public partial class transferWindow : Form, CopyFiles.ICopyFilesDiag { - public System.ComponentModel.ISynchronizeInvoke SyncronizationObject { get; set; } - + public System.ComponentModel.ISynchronizeInvoke SynchronizationObject { get; set; } public transferWindow() { InitializeComponent(); @@ -31,6 +32,15 @@ namespace Saviour_Backup_System currentFile.Text = currentFilename; } + public void cancelCopy() { + if (EN_cancelCopy != null) { EN_cancelCopy(); } + } + public event CopyFiles.CopyFiles.DEL_cancelCopy EN_cancelCopy; + + private void button1_Click(object sender, EventArgs e) + { + cancelCopy(); + } } }