diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-12-18 08:16:43 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-12-18 08:16:43 +0200 |
| commit | 1fb5996d5e30e0182c3a2bcf423bfdba5cde486c (patch) | |
| tree | 7d80de9bcffac3f98aa7b3e6aec7e73622c5932f /Software/Visual_Studio/StubsUtils | |
| parent | dcf222f6811d4a4dcda7f517f61e22e3c5ac0e7e (diff) | |
| download | Tango-1fb5996d5e30e0182c3a2bcf423bfdba5cde486c.tar.gz Tango-1fb5996d5e30e0182c3a2bcf423bfdba5cde486c.zip | |
Stubs Utils.
Diffstat (limited to 'Software/Visual_Studio/StubsUtils')
3 files changed, 68 insertions, 0 deletions
diff --git a/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/Tango.StubsUtils.Service.UI.csproj b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/Tango.StubsUtils.Service.UI.csproj index 29519fcab..28d49f4d2 100644 --- a/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/Tango.StubsUtils.Service.UI.csproj +++ b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/Tango.StubsUtils.Service.UI.csproj @@ -144,6 +144,7 @@ <Generator>SettingsSingleFileGenerator</Generator> <LastGenOutput>Settings.Designer.cs</LastGenOutput> </None> + <None Include="rename_installer.bat" /> </ItemGroup> <ItemGroup> <None Include="App.config" /> @@ -196,4 +197,56 @@ </PropertyGroup> <Error Condition="!Exists('..\..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MaterialDesignThemes.3.0.1\build\MaterialDesignThemes.targets'))" /> </Target> + <PropertyGroup> + <PostBuildEvent>RD /S /Q "$(TargetDir)cs\" +RD /S /Q "$(TargetDir)da\" +RD /S /Q "$(TargetDir)de\" +RD /S /Q "$(TargetDir)es\" +RD /S /Q "$(TargetDir)fa\" +RD /S /Q "$(TargetDir)fi\" +RD /S /Q "$(TargetDir)fr\" +RD /S /Q "$(TargetDir)it\" +RD /S /Q "$(TargetDir)ko\" +RD /S /Q "$(TargetDir)mk\" +RD /S /Q "$(TargetDir)nl\" +RD /S /Q "$(TargetDir)pl\" +RD /S /Q "$(TargetDir)pt\" +RD /S /Q "$(TargetDir)ru\" +RD /S /Q "$(TargetDir)sv\" +RD /S /Q "$(TargetDir)tr\" +RD /S /Q "$(TargetDir)zh-CN\" +RD /S /Q "$(TargetDir)af\" +RD /S /Q "$(TargetDir)ar\" +RD /S /Q "$(TargetDir)dn-BD\" +RD /S /Q "$(TargetDir)el\" +RD /S /Q "$(TargetDir)fi-FI\" +RD /S /Q "$(TargetDir)fr-BE\" +RD /S /Q "$(TargetDir)he\" +RD /S /Q "$(TargetDir)hr\" +RD /S /Q "$(TargetDir)hu\" +RD /S /Q "$(TargetDir)id\" +RD /S /Q "$(TargetDir)ja\" +RD /S /Q "$(TargetDir)lv\" +RD /S /Q "$(TargetDir)nb\" +RD /S /Q "$(TargetDir)ro\" +RD /S /Q "$(TargetDir)sk\" +RD /S /Q "$(TargetDir)sl\" +RD /S /Q "$(TargetDir)sr\" +RD /S /Q "$(TargetDir)sr-Latn\" +RD /S /Q "$(TargetDir)uk\" +RD /S /Q "$(TargetDir)uz-Cyrl-UZ\" +RD /S /Q "$(TargetDir)uz-Latn-UZ\" +RD /S /Q "$(TargetDir)vi\" +RD /S /Q "$(TargetDir)zh-Hans\" +RD /S /Q "$(TargetDir)zh-Hant\" +RD /S /Q "$(TargetDir)bg\" +RD /S /Q "$(TargetDir)bn-BD\" +RD /S /Q "$(TargetDir)nb-NO\" +RD /S /Q "$(TargetDir)pt-BR\" +RD /S /Q "$(TargetDir)ProtoCompilers\" + +if $(ConfigurationName) == Release attrib +r Tango* +if $(ConfigurationName) == Release del *.xml +if $(ConfigurationName) == Release attrib -r Tango*</PostBuildEvent> + </PropertyGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/ViewModels/MainViewVM.cs index 361f85e41..091bb6bf3 100644 --- a/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/ViewModels/MainViewVM.cs @@ -116,6 +116,13 @@ namespace Tango.StubsUtils.Service.UI.ViewModels Service.CommunicationFailed += Service_CommunicationFailed; await Service.Start(); + _notification.Show(new NotificationContent() + { + Title = "Tango Stubs Service", + Message = $"Service Started", + Type = NotificationType.Success + }); + if (Settings.AutoConnect) { await Task.Delay(2000); @@ -125,6 +132,13 @@ namespace Tango.StubsUtils.Service.UI.ViewModels catch (Exception ex) { LogManager.Log(ex, "Error initializing service."); + + _notification.Show(new NotificationContent() + { + Title = "Tango Stubs Service", + Message = $"Initialization Error", + Type = NotificationType.Error + }); } } diff --git a/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/rename_installer.bat b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/rename_installer.bat new file mode 100644 index 000000000..6488f9cf8 --- /dev/null +++ b/Software/Visual_Studio/StubsUtils/Tango.StubsUtils.Service.UI/rename_installer.bat @@ -0,0 +1 @@ +ren *.0.0.exe ????????????????????.?.exe
\ No newline at end of file |
