public static ApplicationInput FromString(ApplicationController controller, string value) { ApplicationInput retVal = new ApplicationInput(controller); var split = value.Trim().Split(' '); foreach (var item in split) { var addAction = KeyInput.FromString(controller, item); if (addAction == null || addAction.Empty()) { addAction = ApplicationActionCloseController.FromString(controller, item); } if (addAction == null || addAction.Empty()) { addAction = ApplicationActionStart.FromString(controller, item); } if (addAction != null && !addAction.Empty()) { retVal.Append(addAction); } } return(retVal); }
public static ApplicationAction FromString(ApplicationController controller, string value) { ApplicationActionStart retVal = new ApplicationActionStart(controller); return(value.Trim().Equals(retVal.AsString()) ? retVal : null); }
public static ApplicationAction FromString(ApplicationController controller, string value) { ApplicationActionStart retVal = new ApplicationActionStart(controller); return value.Trim().Equals(retVal.AsString()) ? retVal : null; }