diff options
| author | Michael <[email protected]> | 2017-01-08 13:55:29 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-08 13:55:29 -0600 |
| commit | a9c7ddbc78e1c4e842de77dc844cc7867b8bb876 (patch) | |
| tree | a631bf25f6897d649e5fbeaf00e70567640d09f2 | |
| parent | b535b0fa8f9d58235bb8d846eb6a14034e347d0c (diff) | |
| parent | f01aeef7c768c1c8ce37fb34019e83219a168836 (diff) | |
| download | shiftos_thereturn-a9c7ddbc78e1c4e842de77dc844cc7867b8bb876.tar.gz shiftos_thereturn-a9c7ddbc78e1c4e842de77dc844cc7867b8bb876.tar.bz2 shiftos_thereturn-a9c7ddbc78e1c4e842de77dc844cc7867b8bb876.zip | |
Documented Infobox.cs | carverh
| -rw-r--r-- | ShiftOS_TheReturn/Infobox.cs | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/ShiftOS_TheReturn/Infobox.cs b/ShiftOS_TheReturn/Infobox.cs index e45ac69..4e7a87b 100644 --- a/ShiftOS_TheReturn/Infobox.cs +++ b/ShiftOS_TheReturn/Infobox.cs @@ -36,25 +36,41 @@ namespace ShiftOS.Engine { public class Infobox { + // Set the infobox's interface to null private static IInfobox _infobox = null; - + + /// <summary> + /// Creates a new infobox + /// </summary> + /// <param name="title">Infobox title</param> + /// <param name="message">Infobox message</param> [Obsolete("Please use Infobox.Show instead.")] public Infobox(string title, string message) { Infobox.Show(title, message); } - + + /// <summary> + /// Shows an infobox + /// </summary> + /// <param name="title">Infobox title</param> + /// <param name="message">Infobox message</param> public static void Show(string title, string message) { _infobox.Open(title, message); } - + + /// <summary> + /// Inits an infobox + /// </summary> + /// <param name="info">Interface for infobox</param> public static void Init(IInfobox info) { _infobox = info; } } - + + // Infobox Interface public interface IInfobox { void Open(string title, string msg); |
