private async Task OnSMStartedAsync(object sender, SMProcessEventArgs eventArgs) { await Application.Current.Dispatcher.InvokeAsync(() => { TbIcon.SetCurrentValue(TaskbarIcon.ToolTipTextProperty, $"SuperMemoAssistant - {SMA.Core.SM.Collection.Name}"); TbIcon.SetCurrentValue(UIElement.VisibilityProperty, Visibility.Visible); }); }
private void OnSMStoppedEvent(object sender, SMProcessEventArgs e) { try { LogTo.Debug("Cleaning up {Name}", GetType().Name); Dispatcher.Invoke(Shutdown); } finally { LogTo.Debug("Cleaning up {Name}... Done", GetType().Name); } }
private void OnSMStopped(object sender, SMProcessEventArgs e) { base.Cleanup(); }
private void OnSMStoppedEvent(object sender, SMProcessEventArgs e) { Dispose(); }