public void Dispose()
        {
            _viewModel.Dispose();
            _viewModel       = null;
            this.DataContext = null;

            GC.SuppressFinalize(this);
        }
 public DirectumTaskView(DirectumTaskViewModel viewModel, IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator) : base(container, regionManager, eventAggregator)
 {
     _viewModel = viewModel;
     InitializeComponent();
     this.DataContext = _viewModel;
 }