private void MenuItem_DGM_PreView(object sender, RoutedEventArgs e) { var image = Preview(DataGridMain.SelectedIndex); Views.PreView pre = new Views.PreView(image) { WindowState = WindowState.Maximized }; pre.ShowDialog(); }
private void MenuItem_PreView_Click(object sender, RoutedEventArgs e) { var image = Preview(); Views.PreView pre = new Views.PreView(image) { WindowState = WindowState.Maximized }; pre.ShowDialog(); }