예제 #1
0
파일: PermaShow.cs 프로젝트: pengang/CN
 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.");
     }
 }
예제 #2
0
파일: PermaShow.cs 프로젝트: pengang/CN
 public static void Add(PermaShowItem permaitem)
 {
     if (!PermaShowItems.Contains(permaitem))
     {
         PermaShowItems.Add(permaitem);
     }
     else
     {
         throw new Exception("PermaShow: This item already exists");
     }
 }
예제 #3
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.");
     }
 }
예제 #4
0
 public static void Add(PermaShowItem permaitem)
 {
     if (!PermaShowItems.Contains(permaitem))
     {
         PermaShowItems.Add(permaitem);
     }
     else
     {
         throw new Exception("PermaShow: This item already exists");
     }
 }