private void ResetGraph()
 {
     MainChart.GetBindingExpression(CartesianChart.SeriesProperty).UpdateTarget();
 }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            DC.MAS.Remove(ListOfEntries.SelectedItem as MainAnalysisObject);

            MainChart.GetBindingExpression(CartesianChart.SeriesProperty).UpdateTarget();
        }