improve:PPT模块
This commit is contained in:
@@ -1186,7 +1186,7 @@ namespace Ink_Canvas
|
|||||||
|
|
||||||
int prev = _previousSlideID;
|
int prev = _previousSlideID;
|
||||||
|
|
||||||
Application.Current.Dispatcher.Invoke(() =>
|
Application.Current.Dispatcher.InvokeAsync(() =>
|
||||||
{
|
{
|
||||||
var ms = new MemoryStream();
|
var ms = new MemoryStream();
|
||||||
inkCanvas.Strokes.Save(ms);
|
inkCanvas.Strokes.Save(ms);
|
||||||
@@ -1228,7 +1228,7 @@ namespace Ink_Canvas
|
|||||||
}).ContinueWith(t =>
|
}).ContinueWith(t =>
|
||||||
{
|
{
|
||||||
if (t.IsFaulted || t.Result == null) return;
|
if (t.IsFaulted || t.Result == null) return;
|
||||||
Application.Current.Dispatcher.Invoke(() =>
|
Application.Current.Dispatcher.InvokeAsync(() =>
|
||||||
{
|
{
|
||||||
if (_currentSlideShowPosition != loadingPage) return;
|
if (_currentSlideShowPosition != loadingPage) return;
|
||||||
inkCanvas.Strokes.Add(t.Result);
|
inkCanvas.Strokes.Add(t.Result);
|
||||||
@@ -2594,4 +2594,4 @@ namespace Ink_Canvas
|
|||||||
BtnPPTSlideShowEnd_Click(BtnPPTSlideShowEnd, null);
|
BtnPPTSlideShowEnd_Click(BtnPPTSlideShowEnd, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user