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)
        {
            ApplicationActionCloseController retVal = new ApplicationActionCloseController(controller);

            return(value.Trim().Equals(retVal.AsString()) ? retVal : null);
        }
Exemple #3
0
 public static ApplicationAction FromString(ApplicationController controller, string value)
 {
     ApplicationActionCloseController retVal = new ApplicationActionCloseController(controller);
       return value.Trim().Equals(retVal.AsString()) ? retVal : null;
 }