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