diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-14 11:29:34 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-14 11:29:34 +0300 |
| commit | e8c5d02db6b9a92b1ff378c1606b6cef6ce69141 (patch) | |
| tree | 031716dd1e4ce96b23334573d3773c43d1f1bb70 /Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs | |
| parent | 987aa1e6a68a68a9251e59402d52f08eb2a6b198 (diff) | |
| parent | 641171e30368056bd97fd53c8dade56889739bc3 (diff) | |
| download | Tango-e8c5d02db6b9a92b1ff378c1606b6cef6ce69141.tar.gz Tango-e8c5d02db6b9a92b1ff378c1606b6cef6ce69141.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs index 7742a3434..631aaaed3 100644 --- a/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.IDE/Dialogs/BaseProjectDialogVM.cs @@ -61,39 +61,25 @@ namespace Tango.Scripting.IDE.Dialogs get { return _projectLocation; } set { _projectLocation = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); } } - + public String GetFullProjectPath() + { + StringBuilder builder = new StringBuilder(ProjectLocation); + builder.AppendFormat(@"{0}\{1}", ProjectLocation, ProjectName); + return builder.ToString(); + } #endregion #region constructor - public BaseProjectDialogVM() : base() + public BaseProjectDialogVM(List<IProjectType> project_types) : base() { ProjectTypes = new ObservableCollection<IProjectType>(); - RegisterProjectType(new StubProjectType()); - RegisterProjectType(new UnitTestProjectType()); - + project_types.ForEach(ProjectTypes.Add); _selectedProjectType = ProjectTypes.FirstOrDefault(); - - string workingDirectory = Environment.CurrentDirectory; - ProjectLocation = Directory.GetParent(workingDirectory).Parent.Parent.FullName; } #endregion - - #region register_project_types - - public void RegisterProjectType(IProjectType projectType) - { - ProjectTypes.Add(projectType); - } - - public void UnRegisterProjectItemHandler(IProjectType projectType) - { - ProjectTypes.Remove(projectType); - } - - #endregion - + #region Override Methods protected override bool CanOK() |
