C# Class PCSX2Bonus.Tools

Mostra file Open project: CyberFoxHax/PCSXBonus

Public Methods

Method Description
FindByName ( string name, FrameworkElement root ) : FrameworkElement
GetDescendantByName ( FrameworkElement element, string name ) : Visual
GetDescendantByType ( Visual element, Type type ) : Visual
GetLocalImage ( string name ) : BitmapImage
GetSizeReadable2 ( long i ) : string
HideAllWindows ( ) : void
ImageFromWeb ( string url, CancellationToken ct ) : Task
InternetAvaliable ( ) : Task
RemoveInvalidXMLChars ( string text ) : string
SaveFromWeb ( string url, string path ) : void
ShowAllWindows ( ) : void
ShowMessage ( string message, MessageType type ) : void
TryLoad ( string path ) : System.Xml.Linq.XElement

Method Details

FindByName() public static method

public static FindByName ( string name, FrameworkElement root ) : FrameworkElement
name string
root System.Windows.FrameworkElement
return System.Windows.FrameworkElement

GetDescendantByName() public static method

public static GetDescendantByName ( FrameworkElement element, string name ) : Visual
element System.Windows.FrameworkElement
name string
return Visual

GetDescendantByType() public static method

public static GetDescendantByType ( Visual element, Type type ) : Visual
element Visual
type System.Type
return Visual

GetLocalImage() public static method

public static GetLocalImage ( string name ) : BitmapImage
name string
return System.Windows.Media.Imaging.BitmapImage

GetSizeReadable2() public static method

public static GetSizeReadable2 ( long i ) : string
i long
return string

HideAllWindows() public static method

public static HideAllWindows ( ) : void
return void

ImageFromWeb() public static method

public static ImageFromWeb ( string url, CancellationToken ct ) : Task
url string
ct System.Threading.CancellationToken
return Task

InternetAvaliable() public static method

public static InternetAvaliable ( ) : Task
return Task

RemoveInvalidXMLChars() public static method

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

SaveFromWeb() public static method

public static SaveFromWeb ( string url, string path ) : void
url string
path string
return void

ShowAllWindows() public static method

public static ShowAllWindows ( ) : void
return void

ShowMessage() public static method

public static ShowMessage ( string message, MessageType type ) : void
message string
type MessageType
return void

TryLoad() public static method

public static TryLoad ( string path ) : System.Xml.Linq.XElement
path string
return System.Xml.Linq.XElement