From 0b2251460c58f0bb7301be2704c9a6c6a44bd5a3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 15 Dec 2014 17:04:22 +0000 Subject: [PATCH] removed deconstructor, pointless functions, and new lines before braces --- Saviour Backup System/transferWindow.cs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Saviour Backup System/transferWindow.cs b/Saviour Backup System/transferWindow.cs index 9e596d5..863b737 100644 --- a/Saviour Backup System/transferWindow.cs +++ b/Saviour Backup System/transferWindow.cs @@ -18,19 +18,14 @@ namespace Saviour_Backup_System public System.ComponentModel.ISynchronizeInvoke SynchronizationObject { get; set; } int arrayIndex; DriveInfo copyingDrive; - Int64 startDate = tools.getUnixTimeStamp(); - public transferWindow(int backups, DriveInfo drive) - { + + 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) { @@ -40,7 +35,7 @@ namespace Saviour_Backup_System if (totalBytes != 0) { currentFileProgress.Value = Convert.ToInt32((1000f / (totalBytes / 1024f)) * (copiedBytes / 1024f)); } - totalFilesProgress.Text = "Copying File " + copiedFiles + " of " + totalFiles + "."; + totalFilesProgress.Text = "Copying Bytes " + copiedFiles + " of " + totalFiles + "."; currentFile.Text = currentFilename; setup.CT.progressBars[arrayIndex].Value = totalFilesProgress.Value; setup.CT.progressBars[arrayIndex].Maximum = totalFiles; @@ -68,14 +63,5 @@ namespace Saviour_Backup_System { this.WindowState = FormWindowState.Minimized; } - - private void transferWindow_FormClosing(object sender, FormClosingEventArgs e) - { - - } - - private void transferWindow_FormClosed(object sender, FormClosedEventArgs e) - { - } } }