added cancel button
This commit is contained in:
parent
e864cf699c
commit
14ee8107e0
1 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue