mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
c7fe363126
Add IsLoading property to NavStateChangedEventArgs (inverse of CanReload) Whilst `CanReload` is the inverse of `IsLoading` I think from a support point of view it's easier to have both as users are looking for some sort of loading flag
28 lines
872 B
C#
28 lines
872 B
C#
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp
|
|
{
|
|
/// <summary>
|
|
/// Event arguments to the NavStateChanged event handler set up in IWebBrowser.
|
|
/// </summary>
|
|
public class NavStateChangedEventArgs : EventArgs
|
|
{
|
|
public bool CanGoForward { get; private set; }
|
|
public bool CanGoBack { get; private set; }
|
|
public bool CanReload { get; private set; }
|
|
public bool IsLoading { get; private set; }
|
|
|
|
public NavStateChangedEventArgs(bool canGoBack, bool canGoForward, bool isLoading)
|
|
{
|
|
CanGoBack = canGoBack;
|
|
CanGoForward = canGoForward;
|
|
IsLoading = isLoading;
|
|
CanReload = !isLoading;
|
|
}
|
|
}
|
|
}
|