Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 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();
 }