예제 #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);
        }
예제 #2
0
        public static ApplicationAction FromString(ApplicationController controller, string value)
        {
            ApplicationActionStart retVal = new ApplicationActionStart(controller);

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