protected override void Dispose(bool disposing) { if (predecessorsViewModel == null) { predecessorsViewModel = this.DataContext as PredecessorsViewModel; } predecessorsViewModel.Dispose(); base.Dispose(disposing); }
/// <summary> /// Initializes a new instance of the <see cref="ViewModel"/> class. /// </summary> public PredecessorsViewModel() { _taskDetails = PredecessorsViewModel.GetData(); }