예제 #1
0
 public bool Reset(ISuperImportantBusinessTool bt)
 {
     try
     {
         bt.Stop();
         bt.OtherReallyReallyImportantStuff(15);
         bt.Start();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
예제 #2
0
 public static bool Reset(this ISuperImportantBusinessTool bt, int Timing)
 {
     // We do nothing with Timing
     try
     {
         bt.Stop();
         bt.OtherReallyReallyImportantStuff(Timing);
         bt.Start();
         return(true);
     }
     catch
     {
         return(false);
     }
 }