C# Class Yava.Util

Datei anzeigen Open project: Beluki/Yava

Public Methods

Method Description
Deserialize ( String filepath ) : Object

Deserialize an object from a binary file.

MessageBoxYesNo ( String text, String caption ) : System.Boolean

Show a MessageBox with Yes and No buttons. Return true when Yes is clicked, false otherwise.

ResourceAsIcon ( String resource ) : Icon

Load an embedded resource as an icon.

Serialize ( Object value, String filepath ) : void

Serialize an object to a binary file.

Method Details

Deserialize() public static method

Deserialize an object from a binary file.
public static Deserialize ( String filepath ) : Object
filepath String File path.
return Object

MessageBoxYesNo() public static method

Show a MessageBox with Yes and No buttons. Return true when Yes is clicked, false otherwise.
public static MessageBoxYesNo ( String text, String caption ) : System.Boolean
text String MessageBox text.
caption String MessageBox caption.
return System.Boolean

ResourceAsIcon() public static method

Load an embedded resource as an icon.
public static ResourceAsIcon ( String resource ) : Icon
resource String Resource name, including namespace.
return System.Drawing.Icon

Serialize() public static method

Serialize an object to a binary file.
public static Serialize ( Object value, String filepath ) : void
value Object Object to serialize.
filepath String Destination path.
return void