aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-04-26 18:25:08 +0300
committerRoy <Roy.mail.net@gmail.com>2023-04-26 18:25:08 +0300
commit7ac048ab48500b9c84e17b6aa20f9fbd12595e22 (patch)
tree83f783f806240dd4b06142fa5712a9764e6fdc0d /Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI
parent914d28f26fcc61c12f0a98c86e6a5ad5a455f72c (diff)
downloadTango-7ac048ab48500b9c84e17b6aa20f9fbd12595e22.tar.gz
Tango-7ac048ab48500b9c84e17b6aa20f9fbd12595e22.zip
Publisher start..
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml.cs13
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs7
2 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml.cs
index 4d062d5af..fb33f246f 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindow.xaml.cs
@@ -14,6 +14,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using Tango.PPC.Common.Build;
using Tango.PPC.Common.Publish;
using Tango.SQLExaminer;
@@ -24,9 +25,21 @@ namespace Tango.PPC.Publisher.UI
/// </summary>
public partial class MainWindow : Window
{
+ private bool _isEureka;
+
public MainWindow()
{
+#if Eureka
+ _isEureka = true;
+#endif
+
InitializeComponent();
+
+ if (_isEureka)
+ {
+ Title = "Eureka Publisher";
+ }
+
DataContext = new MainWindowVM();
}
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 4e3f5c6cd..983845673 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs
@@ -131,14 +131,21 @@ namespace Tango.PPC.Publisher.UI
public RelayCommand FirmwareUpgradePackageBrowseCommand { get; set; }
+ public bool IsEureka { get; set; }
+
public MainWindowVM()
{
+#if Eureka
+ IsEureka = true;
+#endif
+
_client = new PPCWebClient();
var settings = SettingsManager.Default.GetOrCreate<PublisherSettings>();
Options = settings.Options;
_publisher = new PPCPublisher(Options);
+
_publisher.PublishProgress += _publisher_PublishProgress;
ProvisionSequenceItemsView = CollectionViewSource.GetDefaultView(Options.Synchronization.ProvisionSequenceItems);