예제 #1
0
        private void checkAction(string strAction)
        {
            clsInvoker objInvoker  = new clsInvoker();
            IExecute   iobjExecute = objInvoker.getCommand(strAction);

            iobjExecute.execute();
        }
예제 #2
0
 public IExecute getCommand(string strCommand)
 {
     foreach (object obj in objArrayList)
     {
         IExecute objExecute = (IExecute)obj;
         if (objExecute.strCommand == strCommand)
         {
             return(objExecute);
         }
     }
     return(null);
 }