1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using PDF_Master.Model.Dialog.HomePageToolsDialogs.HomePageBatchProcessing;
- using PDF_Master.ViewModels.Dialog.HomePageToolsDialogs;
- using PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing;
- using Prism.Ioc;
- using Prism.Regions;
- using System.Windows.Controls;
- namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing
- {
- /// <summary>
- /// Interaction logic for HomePageBatchProcessingDialog
- /// </summary>
- public partial class HomePageBatchProcessingDialog : UserControl
- {
- private IContainerProvider containerProvider;
- public HomePageBatchProcessingDialog(IContainerProvider containerProvider)
- {
-
- InitializeComponent();
- this.containerProvider = containerProvider;
- var regionManager = containerProvider.Resolve<IRegionManager>();
- RegionManager.SetRegionManager(this, regionManager);
- RegionManager.UpdateRegions();
- SetPathVisibility(HomePageBatchProcessingDialogModel.BatchProcessingIndex);
- }
- public void SetPathVisibility(int index)
- {
- switch (index)
- {
- case 0:
- this.ShiftingBtn.IsChecked=true;
- break;
- case 1:
- this.CompressBtn.IsChecked = true;
- break;
- case 2:
- this.SecurityBtn.IsChecked = true;
- break;
- case 3:
- this.WatermarkBtn.IsChecked = true;
- break;
- case 4:
- this.BackgroundBtn.IsChecked = true;
- break;
- case 5:
- this.HeaderFooterBtn.IsChecked = true;
- break;
- case 6:
- this.BatesBtn.IsChecked = true;
- break;
- case 7:
- this.RemoveSecurityBtn.IsChecked = true;
- break;
- }
- }
-
-
- }
- }
|