public MainWindow() { InitializeComponent(); byte[] InicialSequence = GenerateNumbers.Generate(size); DrawSequence.Draw(InitialPanel, InicialSequence); byte[] FilteredSequence = MedianFilterSequence.Filter(InicialSequence, 30); DrawSequence.Draw(FilteredPanel, FilteredSequence); }
private void button_Click(object sender, RoutedEventArgs e) { InitialPanel.Children.Clear(); FilteredPanel.Children.Clear(); byte[] InicialSequence = GenerateNumbers.Generate(size); DrawSequence.Draw(InitialPanel, InicialSequence); byte[] FilteredSequence = MedianFilterSequence.Filter(InicialSequence, Convert.ToInt32(WindowSizeBox.Text)); DrawSequence.Draw(FilteredPanel, FilteredSequence); }