|
@@ -32,7 +32,6 @@ namespace Compdfkit_Tools.Measure
|
|
|
public partial class MeasureControl : UserControl
|
|
|
{
|
|
|
public MeasurePropertyControl measurePropertyControl = new MeasurePropertyControl();
|
|
|
- public MeasureSettingDialog SettingPanel = new MeasureSettingDialog();
|
|
|
private CPDFDisplaySettingsControl displaySettingsControl;
|
|
|
|
|
|
private PDFViewControl PdfViewControl = new PDFViewControl();
|
|
@@ -45,10 +44,6 @@ namespace Compdfkit_Tools.Measure
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
MeasureSetting.MeasureChanged += MeasureSetting_MeasureChanged;
|
|
|
- SettingPanel.CancelEvent -= SettingPanel_CancelEvent;
|
|
|
- SettingPanel.DoneEvent -= SettingPanel_DoneEvent;
|
|
|
- SettingPanel.CancelEvent += SettingPanel_CancelEvent;
|
|
|
- SettingPanel.DoneEvent += SettingPanel_DoneEvent;
|
|
|
}
|
|
|
|
|
|
private void MeasureSetting_MeasureChanged(object sender, MeasureEventArgs e)
|
|
@@ -510,11 +505,6 @@ namespace Compdfkit_Tools.Measure
|
|
|
}
|
|
|
InfoPanel.Visibility = measureInfo ? Visibility.Visible : Visibility.Collapsed;
|
|
|
SettingPanel.Visibility = measureSetting ? Visibility.Visible : Visibility.Collapsed;
|
|
|
- if(SettingPanel.Visibility == Visibility.Visible)
|
|
|
- {
|
|
|
- SettingPanel.Owner=Window.GetWindow(this);
|
|
|
- SettingPanel.ShowDialog();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
public void SetMeasureInfoType(CPDFMeasureType measureType)
|