예제 #1
0
 public void OpenRelocation(sunRelocation relocation)
 {
     if (relocation == null)
     {
         throw new ArgumentNullException("relocation");
     }
     mRelocations.Add(relocation);
 }
예제 #2
0
파일: loop.cs 프로젝트: RenolY2/ssc
 public bool AddContinue(sunRelocation point)
 {
     if (Count > 0)
     {
         Top.AddContinue(point);
         return(true);
     }
     return(false);
 }
예제 #3
0
파일: loop.cs 프로젝트: RenolY2/ssc
 public bool AddBreak(sunRelocation point)
 {
     if (Count > 0)
     {
         Top.AddBreak(point);
         return(true);
     }
     return(false);
 }
예제 #4
0
파일: loop.cs 프로젝트: RenolY2/ssc
 public bool AddContinue(sunRelocation point)
 {
     if (!HasFlag(sunLoopFlags.ConsumeContinue))
     {
         return(false);
     }
     mContinues.Add(point);
     return(true);
 }
예제 #5
0
파일: loop.cs 프로젝트: RenolY2/ssc
 public bool AddBreak(sunRelocation point)
 {
     if (!HasFlag(sunLoopFlags.ConsumeBreak))
     {
         return(false);
     }
     mBreaks.Add(point);
     return(true);
 }
예제 #6
0
파일: loop.cs 프로젝트: RenolY2/ssc
 public bool AddBreak(sunRelocation point, string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (Count > 0)
     {
         var loop = this[name];
         if (loop != null)
         {
             loop.AddBreak(point);
             return(true);
         }
     }
     return(false);
 }