public static void Remove(PermaShowItem permaitem) { if (PermaShowItems.Contains(permaitem)) { PermaShowItems.Remove(permaitem); } else { throw new Exception("PermaShow: The item you are trying to remove is non-existent."); } }
public static void Add(PermaShowItem permaitem) { if (!PermaShowItems.Contains(permaitem)) { PermaShowItems.Add(permaitem); } else { throw new Exception("PermaShow: This item already exists"); } }
public static void Remove(PermaShowItem permaitem) { if (PermaShowItems.Contains(permaitem)) { PermaShowItems.Remove(permaitem); } else { throw new Exception("PermaShow: The item you are trying to remove is non-existent."); } }
public static void Add(PermaShowItem permaitem) { if (!PermaShowItems.Contains(permaitem)) { PermaShowItems.Add(permaitem); } else { throw new Exception("PermaShow: This item already exists"); } }