private void btnHisto_Click(object sender, RoutedEventArgs e) { var hist = new Histograma(bitmap); hist.ShowDialog(); }