From 2e117a88c560bb3f6be6151aaf8521e6b454b6c6 Mon Sep 17 00:00:00 2001 From: Khaja Nizamuddin Date: Wed, 10 May 2017 18:15:30 +0530 Subject: [PATCH] UX improvement 2 --- .../Models/Chat/BaseContent.cs | 2 ++ ANAConversationStudio/Models/Chat/ChatNode.cs | 36 ++++++++++--------- .../Properties/AssemblyInfo.cs | 4 +-- .../ViewModels/MainWindowViewModel.cs | 6 ++-- 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/ANAConversationStudio/Models/Chat/BaseContent.cs b/ANAConversationStudio/Models/Chat/BaseContent.cs index 7b6c7e3..40519c7 100644 --- a/ANAConversationStudio/Models/Chat/BaseContent.cs +++ b/ANAConversationStudio/Models/Chat/BaseContent.cs @@ -112,6 +112,7 @@ public string SectionText public class TitleCaptionSectionContent : SectionContent { private string _Title; + [Category("Important")] public string Title { get { return _Title; } @@ -126,6 +127,7 @@ public string Title } private string _Caption; + [Category("Important")] public string Caption { get { return _Caption; } diff --git a/ANAConversationStudio/Models/Chat/ChatNode.cs b/ANAConversationStudio/Models/Chat/ChatNode.cs index d59f23e..8a5554a 100644 --- a/ANAConversationStudio/Models/Chat/ChatNode.cs +++ b/ANAConversationStudio/Models/Chat/ChatNode.cs @@ -24,6 +24,7 @@ public ChatNode() #region Important private string _Name; [Category("Important")] + [PropertyOrder(1)] public string Name { get { return _Name; } @@ -37,9 +38,26 @@ public string Name } } + private NodeTypeEnum _NodeType = NodeTypeEnum.Combination; + [Category("Important")] + [PropertyOrder(2)] + public NodeTypeEnum NodeType + { + get { return _NodeType; } + set + { + if (_NodeType != value) + { + _NodeType = value; + OnPropertyChanged(); + } + } + } + private ObservableCollection
_Sections = new ObservableCollection
(); [NewItemTypes(typeof(TextSection), typeof(GifSection), typeof(ImageSection), typeof(GraphSection), typeof(AudioSection), typeof(VideoSection))] [Category("Important")] + [PropertyOrder(3)] [Editor(typeof(ChatNodeCollectionEditor
), typeof(ChatNodeCollectionEditor
))] public ObservableCollection
Sections { @@ -57,6 +75,7 @@ public ObservableCollection
Sections private ObservableCollection