#pragma warning disable VSTHRD100 // Avoid async void methods private async void OnContextChanged(ContextChangeKind kind) #pragma warning restore VSTHRD100 // Avoid async void methods { await _joinableTaskContext.Factory.SwitchToMainThreadAsync(); ContextChanged?.Invoke(this, new ContextChangeEventArgs(kind)); }
private void OnContextChanged(ContextChangeKind kind) { _foregroundDispatcher.AssertForegroundThread(); var handler = ContextChanged; if (handler != null) { handler(this, new ContextChangeEventArgs(kind)); } }
private void OnContextChanged(ProjectSnapshot project, ContextChangeKind kind) { _project = project; var handler = ContextChanged; if (handler != null) { handler(this, new ContextChangeEventArgs(kind)); } }
public ContextChangeEventArgs(ContextChangeKind kind) { Kind = kind; }
private void OnContextChanged(ContextChangeKind kind) { _foregroundDispatcher.AssertForegroundThread(); ContextChanged?.Invoke(this, new ContextChangeEventArgs(kind)); }
public DockableContent() { ContextChangeKind = AvalonDock.ContextChangeKind.PreviewMouseDown; }
private async Task OnContextChangedAsync(ContextChangeKind kind) { await _joinableTaskContext.Factory.SwitchToMainThreadAsync(); ContextChanged?.Invoke(this, new ContextChangeEventArgs(kind)); }