28 lines
918 B
C#
28 lines
918 B
C#
using Notifications.Wpf.Core;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LAEPS.ViewModels
|
|
{
|
|
public abstract class DialogViewModelBase : BindableBase,IDialogAware
|
|
{
|
|
public DialogCloseListener RequestClose { get; set; }
|
|
public IEventAggregator _eventAggregator;
|
|
private INotificationManager _notificationManager;
|
|
public DialogViewModelBase(IContainerProvider containerProvider)
|
|
{
|
|
_eventAggregator = containerProvider.Resolve<IEventAggregator>();
|
|
_notificationManager = containerProvider.Resolve<INotificationManager>();
|
|
}
|
|
#region Dialog
|
|
|
|
public virtual bool CanCloseDialog() => true;
|
|
public virtual void OnDialogClosed() { }
|
|
public virtual void OnDialogOpened(IDialogParameters parameters) { }
|
|
#endregion
|
|
}
|
|
}
|