/// <summary> /// 插件启动器关闭 /// </summary> public void Shutdown() { if (!running || framework == null) { return; } framework.Close(); framework = null; context = null; running = false; }
/// <summary> /// 关闭加载动画 /// </summary> public async void HideLoading() { await Task.Run(() => { Thread.Sleep(2000); Application.Current.Dispatcher.Invoke(() => { Visibility = Visibility.Collapsed; Framework.Close(); Framework.timer.Close(); }); }).ConfigureAwait(true); }