Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public static ApplicationAction FromString(ApplicationController controller, string value)
        {
            ApplicationActionCloseController retVal = new ApplicationActionCloseController(controller);

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