// MoonSite.cs created with MonoDevelop // User: rhowell at 6:13 PMĀ 4/3/2008 // // To change standard headers go to Edit->Preferences->Coding->Standard Headers // using System; using System.Collections; namespace MoonlightStatus { [Serializable] public class MoonSite { public string Name; public string URL; public int Rating; public ArrayList Issues = null; static string star = ""; static string accept = ""; static string help =""; static string delete = ""; public MoonSite(string name, string url, int rating) { Name = name; URL = url; Rating = rating; Issues = new ArrayList(); } public override string ToString () { string s = Name; foreach (MoonIssue issue in Issues) { s += issue.ToString(); } return s; } private string GetRating() { string images = string.Empty; switch(this.Rating) { case 0: images = delete; break; case 1: images = star; break; case 2: images = star + star; break; case 3: images = star + star + star; break; case 4: images = accept; break; default: images = help; break; } string html = string.Format("