aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-11-24 17:31:30 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-11-24 17:31:30 +0200
commitfcf154eb2ae88dcf1003ea6bd14c91cab1a616e9 (patch)
tree8f6195057030e2d2fbbfd2d0090cfed5b5c61866 /Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs
parent53b58d21f600ef55daefd363f6e93274a9e8c048 (diff)
downloadTango-fcf154eb2ae88dcf1003ea6bd14c91cab1a616e9.tar.gz
Tango-fcf154eb2ae88dcf1003ea6bd14c91cab1a616e9.zip
Backup Manager.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs31
1 files changed, 30 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs
index dace90b5c..1eeb848ed 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/BackupRestore/DefaultBackupManager.cs
@@ -3,10 +3,39 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using Tango.PPC.Common.Application;
+using Tango.PPC.Common.BackupRestore;
namespace Tango.PPC.UI.BackupRestore
{
- class DefaultBackupManager
+ public class DefaultBackupManager : IBackupManager
{
+ public event EventHandler<BackupRestoreEventArgs> Progress;
+
+ public DefaultBackupManager(IPPCApplicationManager applicationManager)
+ {
+
+ }
+
+ public Task CreateBackup(string filePath, BackupSettings settings)
+ {
+ throw new NotImplementedException();
+ }
+
+ public Task Restore(string filePath)
+ {
+ throw new NotImplementedException();
+ }
+
+ protected virtual void OnProgress(BackupRestoreStage stage, double progress = 0, double maxProgress = 100, bool isIntermediate = true)
+ {
+ Progress?.Invoke(this, new BackupRestoreEventArgs()
+ {
+ Stage = stage,
+ Progress = progress,
+ MaxProgress = maxProgress,
+ IsIntermediate = isIntermediate,
+ });
+ }
}
}