private void GoToHistogram_Button_Click(object sender, RoutedEventArgs e) { try { HistogramWindow histogramWindow = new HistogramWindow(this); histogramWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; histogramWindow.Show(); } catch (NullReferenceException) {} }
private void DisplayHistogram() { HistogramWindow histogramWindow = new HistogramWindow(SelectedImage.Bitmap); histogramWindow.Show(); }