private void checkAction(string strAction) { clsInvoker objInvoker = new clsInvoker(); IExecute iobjExecute = objInvoker.getCommand(strAction); iobjExecute.execute(); }
public IExecute getCommand(string strCommand) { foreach (object obj in objArrayList) { IExecute objExecute = (IExecute)obj; if (objExecute.strCommand == strCommand) { return(objExecute); } } return(null); }