protected override void OnContentChanged()
 {
     base.OnContentChanged();
     CorrelationCalculator.TryCancelCalculation();
     if (Content != null)
     {
         CalculateCorrelation();
     }
     else
     {
         progressPanel.Visible = false;
         dataView.Maximum      = 0;
         dataView.Minimum      = 0;
         dataView.Content      = null;
         dataView.ResetVisibility();
     }
 }
 protected override void OnClosing(FormClosingEventArgs e)
 {
     base.OnClosing(e);
     CorrelationCalculator.TryCancelCalculation();
 }