private void Button_Click(object sender, RoutedEventArgs e) { byte[] bytes = null; if (this.FullImageLazy != null) { bytes = this.FullImageLazy(); } if (bytes == null) { bytes = (byte[])this.ImageBytes; } ViewImageWindow viewImageWindow = new ViewImageWindow(bytes); viewImageWindow.ShowDialog(); }
private void Button_Click(object sender, RoutedEventArgs e) { byte[] bytes = null; if (this.FullImageLazy != null) { bytes = this.FullImageLazy(); } if (bytes == null) { bytes = (byte[])this.ImageBytes; } ViewImageWindow viewImageWindow = new ViewImageWindow(bytes); viewImageWindow.ShowDialog(); }