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