Exemple #1
0
 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.");
     }
 }
Exemple #2
0
 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");
     }
 }