Example #1
0
        public override async void Edit()
        {
            var editor = new ClothKindEditorViewModel(this.EventAggregator, _model);

            EventAggregator.PublishOnUIThread(this.SelectedEntity);
            await DialogHostExtensions.ShowCaliburnVM(editor);

            RaiseStateChanged();
        }
Example #2
0
        public override async void Add()
        {
            var editor = new ClothKindEditorViewModel(this.EventAggregator, _model);

            editor.ClothKindParent = this.SelectedEntity;
            await DialogHostExtensions.ShowCaliburnVM(editor);

            this.Refresh(0, 0);
        }