C# Class RadioDld.OsUtils

Show file Open project: ribbons/RadioDownloader Class Usage Examples

Public Methods

Method Description
LaunchUrl ( Uri url, string action ) : void

Launch the specified URL in the user's browser, with added tracking parameters if the URL to be launched is part of nerdoftheherd.com.

Private Methods

Method Description
ApplyRunOnStartup ( ) : void
CompositionEnabled ( ) : bool
PathAvailableSpace ( string path ) : ulong

Return the number of available bytes in the specified file path.

DriveInfo.AvailableFreeSpace gives this information, but only for drives. This makes it less useful as paths may contain NTFS junction points, symbolic links, or be UNC paths.

TrayAnimate ( Form form, bool down ) : void
VisibleOnScreen ( Rectangle location ) : bool
WinSevenOrLater ( ) : bool
WinVistaOrLater ( ) : bool
WinXpOrLater ( ) : bool
Windows ( ) : bool

Method Details

LaunchUrl() public static method

Launch the specified URL in the user's browser, with added tracking parameters if the URL to be launched is part of nerdoftheherd.com.
public static LaunchUrl ( Uri url, string action ) : void
url System.Uri The URL to open.
action string The action which caused the URL to be launched, which will be set as the 'campaign'.
return void