1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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();
- }
- #region Property
- public Orientation Orientation
- {
- get
- {
- return ImageFlipUI.Orientation;
- }
- set
- {
- ImageFlipUI.Orientation = value;
- }
- }
- #endregion
- #region UI Event
- private void FlipVertical_Click(object sender, RoutedEventArgs e)
- {
- FlipChanged?.Invoke(this, true);
- }
- private void FlipHorizontal_Click(object sender, RoutedEventArgs e)
- {
- FlipChanged?.Invoke(this, false);
- }
- #endregion
- }
- }
|