1
Fork 0

added cancel button

This commit is contained in:
Jake Howard 2014-11-21 22:34:43 +00:00
parent e864cf699c
commit 14ee8107e0

View file

@ -7,13 +7,14 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using CopyFiles;
namespace Saviour_Backup_System namespace Saviour_Backup_System
{ {
public partial class transferWindow : Form, CopyFiles.ICopyFilesDiag public partial class transferWindow : Form, CopyFiles.ICopyFilesDiag
{ {
public System.ComponentModel.ISynchronizeInvoke SyncronizationObject { get; set; } public System.ComponentModel.ISynchronizeInvoke SynchronizationObject { get; set; }
public transferWindow() public transferWindow()
{ {
InitializeComponent(); InitializeComponent();
@ -31,6 +32,15 @@ namespace Saviour_Backup_System
currentFile.Text = currentFilename; currentFile.Text = currentFilename;
} }
public void cancelCopy() {
if (EN_cancelCopy != null) { EN_cancelCopy(); }
}
public event CopyFiles.CopyFiles.DEL_cancelCopy EN_cancelCopy; public event CopyFiles.CopyFiles.DEL_cancelCopy EN_cancelCopy;
private void button1_Click(object sender, EventArgs e)
{
cancelCopy();
}
} }
} }