Exemplo n.º 1
0
        public override async void Add()
        {
            var editor = new DiscountEdgeEditorViewModel(_eventAggregator, _model);
            await DialogHostExtensions.ShowCaliburnVM(editor);

            RaiseStateChanged();
        }
Exemplo n.º 2
0
        public override async void Edit()
        {
            var editor = new DiscountEdgeEditorViewModel(_eventAggregator, _model);

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

            RaiseStateChanged();
        }