From fc3fdb5098acd072e44a719822a85e60e6bd2df2 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 14 Jun 2021 13:37:12 +0300 Subject: PPC_v1.6.3 --- .../Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml | 7 ++++--- .../Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs | 11 +++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml index e772a4b87..8918c9561 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml @@ -77,13 +77,14 @@ Local Versions: , - + , + Examiner Provision Sequence Items - + @@ -96,7 +97,7 @@ Examiner Update Sequence Items - + 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); -- cgit v1.3.1