Esempio n. 1
0
        public virtual void SetImportValue(string value)
        {
            Proxy list = GetList();

            list.Clear();

            foreach (TType newValue in StringToList <TType> .StaticConvert(value, ConvertFromString))
            {
                list.Add(newValue);
            }
        }
Esempio n. 2
0
        protected override OptionResult Run(GameHitParameters <GameObject> parameters)
        {
            string result = GetString();

            result = StringInputDialog.Show(Name, Common.Localize(GetTitlePrefix() + ":Prompt"), result);
            if (string.IsNullOrEmpty(result))
            {
                return(OptionResult.Failure);
            }

            Saver.Settings.mSimSaveHour = StringToList <float> .StaticConvert(result, ToFloat);

            Saver.RestartTimers();

            return(OptionResult.SuccessRetain);
        }
        public static async Task <(int, string)> GetInputAndParse(string input)
        {
            string LetterString = null;
            Dictionary <string, string> StringDictionary = null;
            int Numbers = 0;

            input = null;
            input = Console.ReadLine();

            if (input != null)
            {
                StringDictionary = await StringToList.ConvertToSepperateValues(input);

                LetterString = StringDictionary["LetterString"];
                Numbers      = await Parser.GetNumberStringParsed(StringDictionary);
            }

            return(Numbers, LetterString);
        }