HomePageConverterImg.xaml.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using ComPDFKit_Conversion.Converter;
  2. using PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter;
  3. using System.Diagnostics;
  4. using System.Windows.Controls;
  5. namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter
  6. {
  7. /// <summary>
  8. /// Interaction logic for HomePageConverterImg
  9. /// </summary>
  10. public partial class HomePageConverterImg : UserControl
  11. {
  12. public HomePageConverterImg()
  13. {
  14. InitializeComponent();
  15. }
  16. private void ImageTypeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
  17. {
  18. if (((HomePageConverterImgViewModel)this.DataContext).homePageConverterDialogViewModel==null)
  19. return;
  20. ((HomePageConverterImgViewModel)this.DataContext).UpdateImageType(ImageTypeComboBox.SelectedIndex);
  21. }
  22. //private void ImageDPIComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
  23. //{
  24. // if (((HomePageConverterImgViewModel)this.DataContext).homePageConverterDialogViewModel == null)
  25. // return;
  26. // ((HomePageConverterImgViewModel)this.DataContext).UpdateImageDpi(ImageDPIComboBox.SelectedIndex);
  27. //}
  28. }
  29. }