C# Class Yava.Util

Afficher le fichier Open project: Beluki/Yava

Méthodes publiques

Méthode 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 méthode

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

MessageBoxYesNo() public static méthode

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.
Résultat System.Boolean

ResourceAsIcon() public static méthode

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

Serialize() public static méthode

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