1234567891011121314151617181920212223242526272829 |
- using System.Windows;
- using System.Windows.Controls;
- namespace ComPDFKit.Controls.Comparison
- {
- public partial class CompareProgressControl : UserControl
- {
- public event RoutedEventHandler CloseClick;
- public CompareProgressControl()
- {
- InitializeComponent();
- }
-
- public void SetValue(int value)
- {
- CompareProgressBar.Value = value;
- }
-
- public void SetValue(double value)
- {
- CompareProgressBar.Value = (int)(value * 100);
- }
- private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
- {
- CloseClick?.Invoke(this, null);
- }
- }
- }
|