Пример #1
0
        /// <summary>
        /// Executes the AddNewPropertyTypeCommand
        /// </summary>
        private void ExecuteAddNewPropertyTypeCommand()
        {
            TextEntryVM = new TextEntryViewModel();


            bool?result = uiVisualizerService.ShowDialog("StringEntryPopup", TextEntryVM);

            if (result.HasValue && result.Value)
            {
                if (!this.PropertyTypes.Contains(TextEntryVM.CurrentPropertyType))
                {
                    this.PropertyTypes.Add(TextEntryVM.CurrentPropertyType);
                }
                else
                {
                    messageBoxService.ShowError("A property with that type already exists");
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Executes the AddNewPropertyTypeCommand
        /// </summary>
        private void ExecuteAddNewPropertyTypeCommand()
        {
            TextEntryVM = new TextEntryViewModel();


            bool? result = uiVisualizerService.ShowDialog("StringEntryPopup", TextEntryVM);

            if (result.HasValue && result.Value)
            {
                if (!this.PropertyTypes.Contains(TextEntryVM.CurrentPropertyType))
                {
                    this.PropertyTypes.Add(TextEntryVM.CurrentPropertyType);
                }
                else
                    messageBoxService.ShowError("A property with that type already exists");
            }

        }