aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2021-06-14 13:37:12 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2021-06-14 13:37:12 +0300
commitfc3fdb5098acd072e44a719822a85e60e6bd2df2 (patch)
tree262162f0e0bb28024f1051981b6be4c9313e736f /Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
parent67af9764fef96f05f61e20942b865a22645ca836 (diff)
downloadTango-fc3fdb5098acd072e44a719822a85e60e6bd2df2.tar.gz
Tango-fc3fdb5098acd072e44a719822a85e60e6bd2df2.zip
PPC_v1.6.3
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
index bf4c7af30..01e34e566 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
@@ -110,6 +110,13 @@ namespace Tango.PPC.Publisher.UI
set { _publishArgs = value; RaisePropertyChangedAuto(); }
}
+ private String _packageSize;
+ public String PackageSize
+ {
+ get { return _packageSize; }
+ set { _packageSize = value; RaisePropertyChangedAuto(); }
+ }
+
public RelayCommand PublishCommand { get; set; }
public RelayCommand CreateTupCommand { get; set; }
@@ -182,6 +189,10 @@ namespace Tango.PPC.Publisher.UI
IsFree = false;
LocalVersion = _publisher.GetLocalVersion();
+ DirectoryInfo di = new DirectoryInfo(Options.GetApplicationPath());
+ long totalSize = di.GetFiles("*", SearchOption.AllDirectories).Sum(x => x.Length);
+ PackageSize = totalSize.FileSizeToString();
+
try
{
LocalFirmwareVersion = _publisher.GetLocalFirmwareVersion(Options.TfpPath);