From f01aeef7c768c1c8ce37fb34019e83219a168836 Mon Sep 17 00:00:00 2001 From: Carver Harrison Date: Sun, 8 Jan 2017 11:41:51 -0800 Subject: [PATCH] Update Infobox.cs --- ShiftOS_TheReturn/Infobox.cs | 24 ++++++++++++++++++++---- 1 file 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; - + + /// + /// Creates a new infobox + /// + /// Infobox title + /// Infobox message [Obsolete("Please use Infobox.Show instead.")] public Infobox(string title, string message) { Infobox.Show(title, message); } - + + /// + /// Shows an infobox + /// + /// Infobox title + /// Infobox message public static void Show(string title, string message) { _infobox.Open(title, message); } - + + /// + /// Inits an infobox + /// + /// Interface for infobox public static void Init(IInfobox info) { _infobox = info; } } - + + // Infobox Interface public interface IInfobox { void Open(string title, string msg);