C# Class Steamp3.Global

Exibir arquivo Open project: ta0soft/STEAMp3

Public Properties

Property Type Description
MainWindow MainWindow
MediaPlayer MediaPlayer
Settings Settings
Skin UI.Skin
Stats Stats
Steam Steam
ToolTip UI.ToolTip

Public Methods

Method Description
AdjustAlpha ( Bitmap b ) : Bitmap
AdjustAlpha ( Bitmap b, int alpha ) : Bitmap
AdjustColor ( Bitmap b, Color c ) : Bitmap
AdjustHue ( Bitmap b, Color c ) : Bitmap
BingSearch ( string text ) : string
BoolToString ( bool b, string falseString, string trueString ) : string
CharToInt ( char c ) : int
ColorToHSV ( Color color, double &hue, double &saturation, double &value ) : void
ColorToHex ( Color c ) : string
CommonDenominator ( int a, int b ) : int
ConvertBytes ( long bytes ) : string
ConvertIP ( uint ip ) : string
ConvertMilliseconds ( int milliseconds, bool ms ) : string
ConvertMinutes ( int minutes, bool ms ) : string
ConvertSeconds ( int seconds, bool ms ) : string
ConvertTicks ( long ticks, bool ms ) : string
ConvertTime ( System.TimeSpan ts, bool ms ) : string
ConvertUnixDate ( int date, string defaultValue ) : string
CurrentLeaks ( int count ) : string
DrawRoundedRectangle ( Graphics g, Rectangle r, Pen p ) : void
DrawString ( IntPtr hDC, string text, Rectangle r, TextFormatFlags flags ) : void
FillRoundedRectangle ( Graphics g, Rectangle r, Brush b ) : void
FormatBitrate ( System.Windows.Forms.UI item ) : string
FormatNumber ( int i ) : string
FormatString ( string s, string empty ) : string
FormatTrack ( short s, string empty ) : string
GenerateCommands ( string url ) : void
GenerateConfigXml ( string url ) : bool
GetAchieved ( SteamAPI steamID ) : string
GetAverage ( int arr ) : int
GetBattery ( ) : string
GetCPU ( ) : string
GetColor ( string s ) : Color
GetCommunityID ( SteamAPI steamID ) : string
GetContrastColor ( Color c ) : Color
GetDrive ( string drive ) : string
GetDrives ( ) : string
GetFileDescription ( string filename ) : string
GetFirstLine ( string lines ) : string
GetFont ( string s ) : Font
GetForecast ( string zip ) : string
GetGPU ( ) : string
GetGasPrices ( string zip ) : string
GetHoroscope ( string sign ) : string
GetHttpFileSize ( string url ) : long
GetHttpTitle ( string url ) : string
GetIniValue ( string url, string section, string key, string defaultValue ) : string
GetIniValueFromString ( string ini, string attribute, string defaultValue ) : string
GetNews ( ) : string
GetNews ( string url ) : string
GetNullableByte ( string s ) : byte?
GetNullableShort ( string s ) : short?
GetOnlineUsers ( ) : string
GetPercent ( double complete, double total, double max ) : double
GetPercent ( int complete, int total, int max ) : int
GetPercent ( long complete, long total, int max ) : int
GetPercent ( double complete, double total ) : string
GetRAM ( ) : string
GetResolution ( ) : string
GetStats ( SteamAPI steamID ) : string
GetUsage ( ) : string
GetWeather ( string zip ) : string
GetXmlValue ( XmlNode node, string attribute, string defaultValue ) : string
GetYouTubeTitle ( string url ) : string
GoogleSearch ( string text ) : string
HSVToColor ( double hue, double saturation, double value ) : Color
HiWord ( IntPtr dWord ) : int
HiWord ( int i ) : int
InUse ( string path ) : bool
IsAlpha ( string s ) : bool
IsColor ( string s ) : bool
IsDirectory ( string path ) : bool
IsFile ( string path ) : bool
IsInt32 ( string s ) : bool
IsRelativePath ( string path ) : bool
IsUInt64 ( string s ) : bool
IsValidDirectory ( string path ) : bool
IsValidFile ( string path ) : bool
LatestTweet ( string user ) : string
LeftOf ( string s, string search ) : string
LoWord ( IntPtr dWord ) : int
LoWord ( int i ) : int
LoadArray ( string filename ) : string[]
LoadString ( string filename ) : string
MeasureString ( Graphics g, string s, Font f, RectangleF rf ) : Rectangle
MeasureString ( Graphics g, string s, Font f, RectangleF rf, StringFormat sf ) : Rectangle
Netflix ( int count ) : string
ParsePrice ( string zip, string price ) : string
RandomNumber ( int max, bool allowZero ) : int
RandomNumber ( int seed, int max, bool allowZero ) : int
ReadRegKey ( RegistryKey root, string key, string item ) : string
Recycle ( string filename ) : bool
ReplaceString ( string s, string find, string replace ) : string
ResolveHost ( string host, int port ) : IPEndPoint
RightOf ( string s, string search ) : string
SaveString ( string s, string filename ) : void
SaveXml ( XmlDocument xml, string url, Encoding encoding ) : bool
SetIniValue ( string url, string section, string key, string value ) : void
ShortenURL ( string url ) : string
StringToBool ( string s, string trueString ) : bool
StringToInt ( string s ) : int
StringToUInt64 ( string s ) : ulong
TopArtists ( int count ) : string
TranslateText ( string text, string from, string to, string language ) : string
Wait ( int ms ) : void
WordOfTheDay ( ) : string

Private Methods

Method Description
AdjustWindowRectEx ( RECT &lpRect, uint dwStyle, bool bMenu, uint dwExStyle ) : bool
CreateCompatibleDC ( IntPtr hdc ) : IntPtr
DrawTextEx ( IntPtr hDC, string lpszString, int nCount, RECT &lpRect, int nFormat, [ lpDTParams ) : int
EnumDisplaySettings ( string lpszDeviceName, int iModeNum, DEVMODE &lpDevMode ) : bool
GetForegroundWindow ( ) : IntPtr
GetPrivateProfileString ( string section, string key, string def, StringBuilder retVal, int size, string filePath ) : int
GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
GlobalMemoryStatusEx ( [ lpBuffer ) : bool
Main ( ) : void
Next ( int prevSeed, bool update ) : float
Prev ( ) : float
Randomize ( ) : void
Randomize ( double number ) : void
Randomize ( int number ) : void
Rnd ( ) : float
Rnd ( float number ) : float
SHFileOperation ( SHFILEOPSTRUCT &FileOp ) : int
SendMessage ( IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : bool
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
WritePrivateProfileString ( string section, string key, string val, string filePath ) : long

Method Details

AdjustAlpha() public static method

public static AdjustAlpha ( Bitmap b ) : Bitmap
b System.Drawing.Bitmap
return System.Drawing.Bitmap

AdjustAlpha() public static method

public static AdjustAlpha ( Bitmap b, int alpha ) : Bitmap
b System.Drawing.Bitmap
alpha int
return System.Drawing.Bitmap

AdjustColor() public static method

public static AdjustColor ( Bitmap b, Color c ) : Bitmap
b System.Drawing.Bitmap
c Color
return System.Drawing.Bitmap

AdjustHue() public static method

public static AdjustHue ( Bitmap b, Color c ) : Bitmap
b System.Drawing.Bitmap
c Color
return System.Drawing.Bitmap

BingSearch() public static method

public static BingSearch ( string text ) : string
text string
return string

BoolToString() public static method

public static BoolToString ( bool b, string falseString, string trueString ) : string
b bool
falseString string
trueString string
return string

CharToInt() public static method

public static CharToInt ( char c ) : int
c char
return int

ColorToHSV() public static method

public static ColorToHSV ( Color color, double &hue, double &saturation, double &value ) : void
color Color
hue double
saturation double
value double
return void

ColorToHex() public static method

public static ColorToHex ( Color c ) : string
c Color
return string

CommonDenominator() public static method

public static CommonDenominator ( int a, int b ) : int
a int
b int
return int

ConvertBytes() public static method

public static ConvertBytes ( long bytes ) : string
bytes long
return string

ConvertIP() public static method

public static ConvertIP ( uint ip ) : string
ip uint
return string

ConvertMilliseconds() public static method

public static ConvertMilliseconds ( int milliseconds, bool ms ) : string
milliseconds int
ms bool
return string

ConvertMinutes() public static method

public static ConvertMinutes ( int minutes, bool ms ) : string
minutes int
ms bool
return string

ConvertSeconds() public static method

public static ConvertSeconds ( int seconds, bool ms ) : string
seconds int
ms bool
return string

ConvertTicks() public static method

public static ConvertTicks ( long ticks, bool ms ) : string
ticks long
ms bool
return string

ConvertTime() public static method

public static ConvertTime ( System.TimeSpan ts, bool ms ) : string
ts System.TimeSpan
ms bool
return string

ConvertUnixDate() public static method

public static ConvertUnixDate ( int date, string defaultValue ) : string
date int
defaultValue string
return string

CurrentLeaks() public static method

public static CurrentLeaks ( int count ) : string
count int
return string

DrawRoundedRectangle() public static method

public static DrawRoundedRectangle ( Graphics g, Rectangle r, Pen p ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
p System.Drawing.Pen
return void

DrawString() public static method

public static DrawString ( IntPtr hDC, string text, Rectangle r, TextFormatFlags flags ) : void
hDC System.IntPtr
text string
r System.Drawing.Rectangle
flags TextFormatFlags
return void

FillRoundedRectangle() public static method

public static FillRoundedRectangle ( Graphics g, Rectangle r, Brush b ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
b System.Drawing.Brush
return void

FormatBitrate() public static method

public static FormatBitrate ( System.Windows.Forms.UI item ) : string
item System.Windows.Forms.UI
return string

FormatNumber() public static method

public static FormatNumber ( int i ) : string
i int
return string

FormatString() public static method

public static FormatString ( string s, string empty ) : string
s string
empty string
return string

FormatTrack() public static method

public static FormatTrack ( short s, string empty ) : string
s short
empty string
return string

GenerateCommands() public static method

public static GenerateCommands ( string url ) : void
url string
return void

GenerateConfigXml() public static method

public static GenerateConfigXml ( string url ) : bool
url string
return bool

GetAchieved() public static method

public static GetAchieved ( SteamAPI steamID ) : string
steamID SteamAPI
return string

GetAverage() public static method

public static GetAverage ( int arr ) : int
arr int
return int

GetBattery() public static method

public static GetBattery ( ) : string
return string

GetCPU() public static method

public static GetCPU ( ) : string
return string

GetColor() public static method

public static GetColor ( string s ) : Color
s string
return Color

GetCommunityID() public static method

public static GetCommunityID ( SteamAPI steamID ) : string
steamID SteamAPI
return string

GetContrastColor() public static method

public static GetContrastColor ( Color c ) : Color
c Color
return Color

GetDrive() public static method

public static GetDrive ( string drive ) : string
drive string
return string

GetDrives() public static method

public static GetDrives ( ) : string
return string

GetFileDescription() public static method

public static GetFileDescription ( string filename ) : string
filename string
return string

GetFirstLine() public static method

public static GetFirstLine ( string lines ) : string
lines string
return string

GetFont() public static method

public static GetFont ( string s ) : Font
s string
return System.Drawing.Font

GetForecast() public static method

public static GetForecast ( string zip ) : string
zip string
return string

GetGPU() public static method

public static GetGPU ( ) : string
return string

GetGasPrices() public static method

public static GetGasPrices ( string zip ) : string
zip string
return string

GetHoroscope() public static method

public static GetHoroscope ( string sign ) : string
sign string
return string

GetHttpFileSize() public static method

public static GetHttpFileSize ( string url ) : long
url string
return long

GetHttpTitle() public static method

public static GetHttpTitle ( string url ) : string
url string
return string

GetIniValue() public static method

public static GetIniValue ( string url, string section, string key, string defaultValue ) : string
url string
section string
key string
defaultValue string
return string

GetIniValueFromString() public static method

public static GetIniValueFromString ( string ini, string attribute, string defaultValue ) : string
ini string
attribute string
defaultValue string
return string

GetNews() public static method

public static GetNews ( ) : string
return string

GetNews() public static method

public static GetNews ( string url ) : string
url string
return string

GetNullableByte() public static method

public static GetNullableByte ( string s ) : byte?
s string
return byte?

GetNullableShort() public static method

public static GetNullableShort ( string s ) : short?
s string
return short?

GetOnlineUsers() public static method

public static GetOnlineUsers ( ) : string
return string

GetPercent() public static method

public static GetPercent ( double complete, double total, double max ) : double
complete double
total double
max double
return double

GetPercent() public static method

public static GetPercent ( int complete, int total, int max ) : int
complete int
total int
max int
return int

GetPercent() public static method

public static GetPercent ( long complete, long total, int max ) : int
complete long
total long
max int
return int

GetPercent() public static method

public static GetPercent ( double complete, double total ) : string
complete double
total double
return string

GetRAM() public static method

public static GetRAM ( ) : string
return string

GetResolution() public static method

public static GetResolution ( ) : string
return string

GetStats() public static method

public static GetStats ( SteamAPI steamID ) : string
steamID SteamAPI
return string

GetUsage() public static method

public static GetUsage ( ) : string
return string

GetWeather() public static method

public static GetWeather ( string zip ) : string
zip string
return string

GetXmlValue() public static method

public static GetXmlValue ( XmlNode node, string attribute, string defaultValue ) : string
node System.Xml.XmlNode
attribute string
defaultValue string
return string

GetYouTubeTitle() public static method

public static GetYouTubeTitle ( string url ) : string
url string
return string

GoogleSearch() public static method

public static GoogleSearch ( string text ) : string
text string
return string

HSVToColor() public static method

public static HSVToColor ( double hue, double saturation, double value ) : Color
hue double
saturation double
value double
return Color

HiWord() public static method

public static HiWord ( IntPtr dWord ) : int
dWord System.IntPtr
return int

HiWord() public static method

public static HiWord ( int i ) : int
i int
return int

InUse() public static method

public static InUse ( string path ) : bool
path string
return bool

IsAlpha() public static method

public static IsAlpha ( string s ) : bool
s string
return bool

IsColor() public static method

public static IsColor ( string s ) : bool
s string
return bool

IsDirectory() public static method

public static IsDirectory ( string path ) : bool
path string
return bool

IsFile() public static method

public static IsFile ( string path ) : bool
path string
return bool

IsInt32() public static method

public static IsInt32 ( string s ) : bool
s string
return bool

IsRelativePath() public static method

public static IsRelativePath ( string path ) : bool
path string
return bool

IsUInt64() public static method

public static IsUInt64 ( string s ) : bool
s string
return bool

IsValidDirectory() public static method

public static IsValidDirectory ( string path ) : bool
path string
return bool

IsValidFile() public static method

public static IsValidFile ( string path ) : bool
path string
return bool

LatestTweet() public static method

public static LatestTweet ( string user ) : string
user string
return string

LeftOf() public static method

public static LeftOf ( string s, string search ) : string
s string
search string
return string

LoWord() public static method

public static LoWord ( IntPtr dWord ) : int
dWord System.IntPtr
return int

LoWord() public static method

public static LoWord ( int i ) : int
i int
return int

LoadArray() public static method

public static LoadArray ( string filename ) : string[]
filename string
return string[]

LoadString() public static method

public static LoadString ( string filename ) : string
filename string
return string

MeasureString() public static method

public static MeasureString ( Graphics g, string s, Font f, RectangleF rf ) : Rectangle
g System.Drawing.Graphics
s string
f System.Drawing.Font
rf System.Drawing.RectangleF
return System.Drawing.Rectangle

MeasureString() public static method

public static MeasureString ( Graphics g, string s, Font f, RectangleF rf, StringFormat sf ) : Rectangle
g System.Drawing.Graphics
s string
f System.Drawing.Font
rf System.Drawing.RectangleF
sf System.Drawing.StringFormat
return System.Drawing.Rectangle

Netflix() public static method

public static Netflix ( int count ) : string
count int
return string

ParsePrice() public static method

public static ParsePrice ( string zip, string price ) : string
zip string
price string
return string

RandomNumber() public static method

public static RandomNumber ( int max, bool allowZero ) : int
max int
allowZero bool
return int

RandomNumber() public static method

public static RandomNumber ( int seed, int max, bool allowZero ) : int
seed int
max int
allowZero bool
return int

ReadRegKey() public static method

public static ReadRegKey ( RegistryKey root, string key, string item ) : string
root Microsoft.Win32.RegistryKey
key string
item string
return string

Recycle() public static method

public static Recycle ( string filename ) : bool
filename string
return bool

ReplaceString() public static method

public static ReplaceString ( string s, string find, string replace ) : string
s string
find string
replace string
return string

ResolveHost() public static method

public static ResolveHost ( string host, int port ) : IPEndPoint
host string
port int
return System.Net.IPEndPoint

RightOf() public static method

public static RightOf ( string s, string search ) : string
s string
search string
return string

SaveString() public static method

public static SaveString ( string s, string filename ) : void
s string
filename string
return void

SaveXml() public static method

public static SaveXml ( XmlDocument xml, string url, Encoding encoding ) : bool
xml System.Xml.XmlDocument
url string
encoding System.Text.Encoding
return bool

SetIniValue() public static method

public static SetIniValue ( string url, string section, string key, string value ) : void
url string
section string
key string
value string
return void

ShortenURL() public static method

public static ShortenURL ( string url ) : string
url string
return string

StringToBool() public static method

public static StringToBool ( string s, string trueString ) : bool
s string
trueString string
return bool

StringToInt() public static method

public static StringToInt ( string s ) : int
s string
return int

StringToUInt64() public static method

public static StringToUInt64 ( string s ) : ulong
s string
return ulong

TopArtists() public static method

public static TopArtists ( int count ) : string
count int
return string

TranslateText() public static method

public static TranslateText ( string text, string from, string to, string language ) : string
text string
from string
to string
language string
return string

Wait() public static method

public static Wait ( int ms ) : void
ms int
return void

WordOfTheDay() public static method

public static WordOfTheDay ( ) : string
return string

Property Details

MainWindow public_oe static_oe property

public static MainWindow,Steamp3 MainWindow
return MainWindow

MediaPlayer public_oe static_oe property

public static MediaPlayer,Steamp3 MediaPlayer
return MediaPlayer

Settings public_oe static_oe property

public static Settings,Steamp3 Settings
return Settings

Skin public_oe static_oe property

public static UI.Skin Skin
return UI.Skin

Stats public_oe static_oe property

public static Stats,Steamp3 Stats
return Stats

Steam public_oe static_oe property

public static Steam,Steamp3 Steam
return Steam

ToolTip public_oe static_oe property

public static UI.ToolTip ToolTip
return UI.ToolTip