/// <summary> /// Starts the restoration of folders /// </summary> /// <param name="folderPath">The path of the original folder</param> /// <param name="dateTime">The version selected, indicated by the date and time</param> public void StartRestore(string folderPath, string dateTime) { TrackBackData data = new TrackBackData(); data.DateTime = dateTime; data.FolderPath = folderPath; backgroundWorkerForTrackBackRestore.RunWorkerAsync(data); }
/// <summary> /// Starts the restoration of folders /// </summary> /// <param name="folderPath">The path of the original folder</param> /// <param name="dateTime">The version selected, indicated by the date and time</param> public void StartRestore(string folderPath, string dateTime) { TrackBackData data = new TrackBackData(); data.DateTime = dateTime; data.FolderPath = folderPath; backgroundWorkerForTrackBackRestore.RunWorkerAsync(data); }
/// <summary> /// Gets the background worker to start working and start restoring of folders /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void backgroundWorkerForTrackBackRestore_DoWork(object sender, DoWorkEventArgs e) { TrackBackData data = e.Argument as TrackBackData; e.Result = RestoreFolder(data.FolderPath, data.DateTime); }