From a84ca3e4bee123600c08f8897eca5be83b3ffcf8 Mon Sep 17 00:00:00 2001 From: Roy Date: Sun, 11 Feb 2018 21:46:22 +0200 Subject: Added TechView for Developer.. --- .../ViewModels/MachineTechViewVM.cs | 25 ++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs index e3cbb61cd..d87652e42 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs @@ -1,4 +1,5 @@ -using Google.Protobuf.Collections; +using GalaSoft.MvvmLight.Ioc; +using Google.Protobuf.Collections; using Microsoft.Win32; using RealTimeGraphEx.Controllers; using System; @@ -98,6 +99,16 @@ namespace Tango.MachineStudio.Technician.ViewModels set { _disableRendering = value; RaisePropertyChangedAuto(); OnDisableRenderingChanged(); } } + private bool _hideMenu; + /// + /// Gets or sets a value indicating whether [hide menu]. + /// + public bool HideMenu + { + get { return _hideMenu; } + set { _hideMenu = value; RaisePropertyChangedAuto(); } + } + #endregion #region Commands @@ -112,7 +123,13 @@ namespace Tango.MachineStudio.Technician.ViewModels #region Constructors - public MachineTechViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider) + [PreferredConstructor] + public MachineTechViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider) : this(applicationManager, notificationProvider, true) + { + + } + + public MachineTechViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider, bool loadLastProject) { _notification = notificationProvider; _singleControllers = new Dictionary(); @@ -132,7 +149,7 @@ namespace Tango.MachineStudio.Technician.ViewModels _lastTechProjectFile = SettingsManager.Default.MachineStudio.TechnicianModule.LasTechProjectFile; - if (File.Exists(_lastTechProjectFile)) + if (File.Exists(_lastTechProjectFile) && loadLastProject) { OpenProjectFile(_lastTechProjectFile); } @@ -703,7 +720,7 @@ namespace Tango.MachineStudio.Technician.ViewModels await MachineOperator.StopThreadJogging(new ThreadAbortJoggingRequest()); } }; - } + } #endregion -- cgit v1.3.1