added global directory string
This commit is contained in:
parent
b68e54539a
commit
e58bbeb71d
1 changed files with 4 additions and 2 deletions
|
@ -23,13 +23,14 @@ namespace Saviour_Backup_System
|
||||||
private Stopwatch SW = new Stopwatch();
|
private Stopwatch SW = new Stopwatch();
|
||||||
string driveHash;
|
string driveHash;
|
||||||
bool finalised = false;
|
bool finalised = false;
|
||||||
|
string Gdirectory;
|
||||||
public transferWindow(int backups, DriveInfo drive, string hash) {
|
public transferWindow(int backups, DriveInfo drive, string hash, string directory) {
|
||||||
driveHash = hash;
|
driveHash = hash;
|
||||||
copyingDrive = drive;
|
copyingDrive = drive;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
arrayIndex = backups;
|
arrayIndex = backups;
|
||||||
currentFileProgress.Maximum = 1000;
|
currentFileProgress.Maximum = 1000;
|
||||||
|
Gdirectory = directory;
|
||||||
SW.Start(); //starts the stopwatch to count how long the copy takes
|
SW.Start(); //starts the stopwatch to count how long the copy takes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@ namespace Saviour_Backup_System
|
||||||
setup.CT.progressBars[arrayIndex].Value = 100;
|
setup.CT.progressBars[arrayIndex].Value = 100;
|
||||||
setup.CT.progressBars[arrayIndex].Maximum = 100;
|
setup.CT.progressBars[arrayIndex].Maximum = 100;
|
||||||
setup.CT.progressBars[arrayIndex].Text = "Complete!";
|
setup.CT.progressBars[arrayIndex].Text = "Complete!";
|
||||||
|
compression.Compress(Gdirectory, DateTime.Now.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|
Reference in a new issue