From 76796ca52a69cfce922be253d6e9207ccbfd09a7 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 4 Sep 2018 17:01:08 +0300 Subject: Started working on Test Studio... Machine Studio v3.4.42 --- .../MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml | 6 +++--- .../Tango.MachineStudio.UI/MainWindow.xaml.cs | 14 +++++++++++++- .../Tango.MachineStudio.UI/Properties/AssemblyInfo.cs | 2 +- .../Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj | 7 +++++-- .../Tango.MachineStudio.UI/Views/AboutView.xaml | 2 +- 5 files changed, 23 insertions(+), 8 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml index 44b2ed401..6c55f6c5e 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml @@ -10,11 +10,11 @@ mc:Ignorable="d" Title="Tango" Height="800" Width="1280" Foreground="#494949" BorderThickness="1" BorderBrush="{StaticResource AccentColorBrush}"> - + - + @@ -30,6 +30,6 @@ - + diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs index f0f93a867..9989aa091 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs @@ -31,6 +31,7 @@ namespace Tango.MachineStudio.UI { public static MainWindow Instance { get; set; } private LogManager LogManager = LogManager.Default; + private bool _is_testing; public MainWindow() { @@ -40,6 +41,17 @@ namespace Tango.MachineStudio.UI { InitializeComponent(); + _is_testing = TestHelper.IsRunningUnderTestStudio(); + + if (!_is_testing) + { + Viewbox box = new Viewbox(); + box.Stretch = Stretch.Fill; + main_grid.Children.Remove(grid); + box.Child = grid; + main_grid.Children.Add(box); + } + WindowStartupLocation = WindowStartupLocation.Manual; var r = SettingsManager.Default.GetOrCreate().LastBounds; @@ -52,7 +64,7 @@ namespace Tango.MachineStudio.UI Instance = this; ThreadsHelper.SetDisptacher(Dispatcher); - Closing += MainWindow_Closing; + Closing += MainWindow_Closing; } catch (Exception ex) { diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs index 2e1844850..6ffcf96b5 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs @@ -4,5 +4,5 @@ using System.Runtime.InteropServices; [assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] [assembly: AssemblyTitle("Tango - Machine Studio")] -[assembly: AssemblyVersion("3.4.41.18238")] +[assembly: AssemblyVersion("3.4.42.18238")] [assembly: ComVisible(false)] \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj index 3cab71602..5a646e9c0 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj @@ -512,7 +512,10 @@ - $(SolutionDir)Build\Utilities\Debug\linkgen.exe -s "$(TargetPath)" -d "$(SolutionDir)Build\Shortcuts\Machine Studio.lnk" + call "$(DevEnvDir)..\..\vc\vcvarsall.bat" x86 +"$(DevEnvDir)..\..\vc\bin\EditBin.exe" "$(TargetPath)" /LARGEADDRESSAWARE + +$(SolutionDir)Build\Utilities\Debug\linkgen.exe -s "$(TargetPath)" -d "$(SolutionDir)Build\Shortcuts\Machine Studio.lnk" RD /S /Q "$(TargetDir)cs\" RD /S /Q "$(TargetDir)da\" @@ -576,7 +579,7 @@ copy /Y "$(SolutionDir)Referenced Assemblies\Microsoft.WITDataStore32.dll" "$(Ta - + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml index 55c4edc91..6d47e8191 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/AboutView.xaml @@ -50,7 +50,7 @@ Build Date: Data Source: - + -- cgit v1.3.1