From d60040f2d33df0046de4fcd2ab9b2a1767b0138e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 12 Dec 2014 18:12:03 +0000 Subject: [PATCH] testing code, and more parameters --- Saviour Backup System/transferWindow.cs | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Saviour Backup System/transferWindow.cs b/Saviour Backup System/transferWindow.cs index 425f5d2..9e596d5 100644 --- a/Saviour Backup System/transferWindow.cs +++ b/Saviour Backup System/transferWindow.cs @@ -7,21 +7,31 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.IO; using CopyFiles; namespace Saviour_Backup_System { - public partial class transferWindow : Form, CopyFiles.ICopyFilesDiag + public partial class transferWindow : Form, CopyFiles.ICopyFilesDiag, IDisposable { public System.ComponentModel.ISynchronizeInvoke SynchronizationObject { get; set; } int arrayIndex; - public transferWindow(int backups) + DriveInfo copyingDrive; + Int64 startDate = tools.getUnixTimeStamp(); + public transferWindow(int backups, DriveInfo drive) { + copyingDrive = drive; InitializeComponent(); arrayIndex = backups; currentFileProgress.Maximum = 1000; + } + ~transferWindow() //deconstructor (hopefully ran when it closes) + { + MessageBox.Show("Hi there."); + } + public void update(Int32 totalFiles, Int32 copiedFiles, Int64 totalBytes, Int64 copiedBytes, string currentFilename) { totalFilesProgress.Maximum = totalFiles; @@ -58,5 +68,14 @@ namespace Saviour_Backup_System { this.WindowState = FormWindowState.Minimized; } + + private void transferWindow_FormClosing(object sender, FormClosingEventArgs e) + { + + } + + private void transferWindow_FormClosed(object sender, FormClosedEventArgs e) + { + } } }