|
@@ -16,7 +16,7 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
|
|
|
public event EventHandler<SplitMode> SplitModeChanged;
|
|
|
|
|
|
- public event EventHandler<ViewModes> ViewModeChanged;
|
|
|
+ public event EventHandler<ViewMode> ViewModeChanged;
|
|
|
|
|
|
public event EventHandler<bool> CropModeChanged;
|
|
|
|
|
@@ -89,7 +89,7 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
ClearViewState();
|
|
|
BookViewBtn.IsChecked = true;
|
|
|
BookViewPath.Fill = ActivePathBrush;
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked==true? ViewModes.BookContinuous: ViewModes.Book);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked==true? ViewMode.BookContinuous: ViewMode.Book);
|
|
|
}
|
|
|
|
|
|
private void DoubleViewBtn_Click(object sender, RoutedEventArgs e)
|
|
@@ -97,7 +97,7 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
ClearViewState();
|
|
|
DoubleViewBtn.IsChecked = true;
|
|
|
DoubleViewPath.Fill = ActivePathBrush;
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewModes.DoubleContinuous: ViewModes.Double);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewMode.DoubleContinuous: ViewMode.Double);
|
|
|
}
|
|
|
|
|
|
private void SingleViewBtn_Click(object sender, RoutedEventArgs e)
|
|
@@ -105,7 +105,7 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
ClearViewState();
|
|
|
SingleViewBtn.IsChecked = true;
|
|
|
SingleViewPath.Fill = ActivePathBrush;
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewModes.SingleContinuous: ViewModes.Single);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewMode.SingleContinuous: ViewMode.Single);
|
|
|
}
|
|
|
|
|
|
private void CropModeBtn_Click(object sender, RoutedEventArgs e)
|
|
@@ -117,19 +117,19 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
{
|
|
|
if(SingleViewBtn.IsChecked==true)
|
|
|
{
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewModes.SingleContinuous : ViewModes.Single);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewMode.SingleContinuous : ViewMode.Single);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (DoubleViewBtn.IsChecked == true)
|
|
|
{
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewModes.DoubleContinuous : ViewModes.Double);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewMode.DoubleContinuous : ViewMode.Double);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if(BookViewBtn.IsChecked == true)
|
|
|
{
|
|
|
- ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewModes.BookContinuous : ViewModes.Book);
|
|
|
+ ViewModeChanged?.Invoke(this, ContinuePageBtn.IsChecked == true ? ViewMode.BookContinuous : ViewMode.Book);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -167,38 +167,38 @@ namespace Compdfkit_Tools.PDFControlUI
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void SetViewModeUI(ViewModes mode)
|
|
|
+ public void SetViewModeUI(ViewMode mode)
|
|
|
{
|
|
|
ClearViewState();
|
|
|
|
|
|
switch (mode)
|
|
|
{
|
|
|
- case ViewModes.Book:
|
|
|
+ case ViewMode.Book:
|
|
|
BookViewBtn.IsChecked = true;
|
|
|
BookViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = false;
|
|
|
break;
|
|
|
- case ViewModes.BookContinuous:
|
|
|
+ case ViewMode.BookContinuous:
|
|
|
BookViewBtn.IsChecked = true;
|
|
|
BookViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = true;
|
|
|
break;
|
|
|
- case ViewModes.Single:
|
|
|
+ case ViewMode.Single:
|
|
|
SingleViewBtn.IsChecked = true;
|
|
|
SingleViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = false;
|
|
|
break;
|
|
|
- case ViewModes.SingleContinuous:
|
|
|
+ case ViewMode.SingleContinuous:
|
|
|
SingleViewBtn.IsChecked = true;
|
|
|
SingleViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = true;
|
|
|
break;
|
|
|
- case ViewModes.Double:
|
|
|
+ case ViewMode.Double:
|
|
|
DoubleViewBtn.IsChecked = true;
|
|
|
DoubleViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = false;
|
|
|
break;
|
|
|
- case ViewModes.DoubleContinuous:
|
|
|
+ case ViewMode.DoubleContinuous:
|
|
|
DoubleViewBtn.IsChecked = true;
|
|
|
DoubleViewPath.Fill = ActivePathBrush;
|
|
|
ContinuePageBtn.IsChecked = true;
|