12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Windows;
- using System.Windows.Controls;
- namespace Compdfkit_Tools.Edit
- {
- public partial class CPDFImageFlipUI : UserControl
- {
- public event EventHandler<bool> FlipChanged;
- public CPDFImageFlipUI()
- {
- InitializeComponent();
- }
- public Orientation Orientation
- {
- get
- {
- return ImageFlipUI.Orientation;
- }
- set
- {
- ImageFlipUI.Orientation = value;
- }
- }
- private void FlipVertical_Click(object sender, RoutedEventArgs e)
- {
- FlipChanged?.Invoke(this, true);
- }
- private void FlipHorizontal_Click(object sender, RoutedEventArgs e)
- {
- FlipChanged?.Invoke(this, false);
- }
- }
- }
|