diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-27 16:42:04 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-27 16:42:04 +0300 |
| commit | f99f56c619bed96ab7b75be8477dec6e504bad7e (patch) | |
| tree | 9fafdfb4e9fd62e4b7c1c1df2f1297b51a6f1688 /Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | |
| parent | 90e05a52a1a6a3b7f5bce8a619dd4e50ea10575d (diff) | |
| download | Tango-f99f56c619bed96ab7b75be8477dec6e504bad7e.tar.gz Tango-f99f56c619bed96ab7b75be8477dec6e504bad7e.zip | |
Implemented segment & brush stop remove.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs index c8dc68291..f823e88aa 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -126,7 +126,12 @@ namespace Tango.PPC.UI.PPCApplication File.Copy(Path.Combine(PathHelper.GetStartupPath(), "DB", "Tango.mdf"), CoreSettings.DefaultDataBaseSource); } - var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); ; + var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); + + if (!SettingsManager.Default.IsFileExists()) + { + settings.Save(); + } ObservablesEntitiesAdapter.Instance.Initialize(); Machine = ObservablesEntitiesAdapter.Instance.Machines.FirstOrDefault(); |
