diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-04 17:01:08 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-04 17:01:08 +0300 |
| commit | 76796ca52a69cfce922be253d6e9207ccbfd09a7 (patch) | |
| tree | 17b9871d793e6d4b5fbaed297280cf137f009bb8 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs | |
| parent | 3473064786b9a1d29a1d1334d1a189d1c8d369bc (diff) | |
| download | Tango-76796ca52a69cfce922be253d6e9207ccbfd09a7.tar.gz Tango-76796ca52a69cfce922be253d6e9207ccbfd09a7.zip | |
Started working on Test Studio...
Machine Studio v3.4.42
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs | 14 |
1 files changed, 13 insertions, 1 deletions
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<MachineStudioSettings>().LastBounds; @@ -52,7 +64,7 @@ namespace Tango.MachineStudio.UI Instance = this; ThreadsHelper.SetDisptacher(Dispatcher); - Closing += MainWindow_Closing; + Closing += MainWindow_Closing; } catch (Exception ex) { |
