private void MovingAverage_Click(object sender, RoutedEventArgs e)
 {
     MovingAverage ma = new MovingAverage();
     ma.ShowDialog();
 }
        private void MovingAverage_Click(object sender, RoutedEventArgs e)
        {
            MovingAverage ma = new MovingAverage();

            ma.ShowDialog();
        }