1 using System; 2 using System.Data; 3 using System.Configuration; 4 using System.Web; 5 using System.Web.Security; 6 using System.Web.UI; 7 using System.Web.UI.WebControls; 8 using System.Web.UI.WebControls.WebParts; 9 using System.Web.UI.HtmlControls; 10 11 /// 12 /// Global informantion class 13 /// 14 public class GlobalInfo 15 { 16 private static GlobalInfo instance; 17 18 private string _smtServer = "psychopathy.seas.upenn.edu"; 19 20 21 22 public string SmtpServer 23 { 24 get { return _smtServer; } 25 set { _smtServer = value; } 26 } 27 28 public GlobalInfo() 29 { 30 // 31 // TODO: Add constructor logic here 32 // 33 } 34 35 public static GlobalInfo GetInstance() 36 { 37 if (instance == null) instance = new GlobalInfo(); 38 return instance; 39 } 40 }