コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _tooltipService.Dispose();
         _notificationService.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         OnClosing();
         if (_notificationService != null)
         {
             _notificationService.Dispose();
             _notificationService = null;
         }
         if (_toolTipService != null)
         {
             _toolTipService.Dispose();
             _toolTipService = null;
         }
         _viewModel = null;
     }
     base.Dispose(disposing);
 }