1
Fork 0

testing code, and more parameters

This commit is contained in:
Jake Howard 2014-12-12 18:12:03 +00:00
parent b3ca826d51
commit d60040f2d3

View file

@ -7,21 +7,31 @@ 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 System.IO;
using CopyFiles; using CopyFiles;
namespace Saviour_Backup_System 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; } public System.ComponentModel.ISynchronizeInvoke SynchronizationObject { get; set; }
int arrayIndex; int arrayIndex;
public transferWindow(int backups) DriveInfo copyingDrive;
Int64 startDate = tools.getUnixTimeStamp();
public transferWindow(int backups, DriveInfo drive)
{ {
copyingDrive = drive;
InitializeComponent(); InitializeComponent();
arrayIndex = backups; arrayIndex = backups;
currentFileProgress.Maximum = 1000; 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) public void update(Int32 totalFiles, Int32 copiedFiles, Int64 totalBytes, Int64 copiedBytes, string currentFilename)
{ {
totalFilesProgress.Maximum = totalFiles; totalFilesProgress.Maximum = totalFiles;
@ -58,5 +68,14 @@ namespace Saviour_Backup_System
{ {
this.WindowState = FormWindowState.Minimized; this.WindowState = FormWindowState.Minimized;
} }
private void transferWindow_FormClosing(object sender, FormClosingEventArgs e)
{
}
private void transferWindow_FormClosed(object sender, FormClosedEventArgs e)
{
}
} }
} }