diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-02-11 21:46:22 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-02-11 21:46:22 +0200 |
| commit | a84ca3e4bee123600c08f8897eca5be83b3ffcf8 (patch) | |
| tree | cccdce1734f55c0647b5c19c1fcc733be92ddbf6 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels | |
| parent | a801f688bde7b6c75f47ca4ebd2991271c521d34 (diff) | |
| download | Tango-a84ca3e4bee123600c08f8897eca5be83b3ffcf8.tar.gz Tango-a84ca3e4bee123600c08f8897eca5be83b3ffcf8.zip | |
Added TechView for Developer..
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/ViewModels/MachineTechViewVM.cs | 25 |
1 files changed, 21 insertions, 4 deletions
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; + /// <summary> + /// Gets or sets a value indicating whether [hide menu]. + /// </summary> + 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<SingleGraphItem, GraphController>(); @@ -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 |
