|
@@ -64,6 +64,9 @@ namespace PDF_Office.Views.PageEdit
|
|
|
|
|
|
timer.Interval = TimeSpan.FromSeconds(0.3);
|
|
timer.Interval = TimeSpan.FromSeconds(0.3);
|
|
timer.Tick += Timer_Tick;
|
|
timer.Tick += Timer_Tick;
|
|
|
|
+
|
|
|
|
+ //订阅页面刷新事件
|
|
|
|
+ eventor.GetEvent<PageEditNotifyEvent>().Subscribe(OneNotifyEvent, e => e.Unicode == unicode);
|
|
}
|
|
}
|
|
|
|
|
|
private void Timer_Tick(object sender, EventArgs e)
|
|
private void Timer_Tick(object sender, EventArgs e)
|
|
@@ -72,6 +75,11 @@ namespace PDF_Office.Views.PageEdit
|
|
timer.Stop();
|
|
timer.Stop();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void OneNotifyEvent(PageEditNotifyEventArgs e)
|
|
|
|
+ {
|
|
|
|
+ PulishEvent();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
#region UI事件
|
|
#region UI事件
|
|
/// <summary>
|
|
/// <summary>
|