示例#1
0
        public static double ReadDouble(string title)
        {
            var inputWindow = new InputWindow(title);
            var value       = inputWindow.ReadValue();

            double readDouble;
            var    result = double.TryParse(value, NumberStyles.Number, CultureInfo.InstalledUICulture, out readDouble);

            return(result ? readDouble : 0.0);
        }
示例#2
0
        public static string ReadValue(string title)
        {
            var inputWindow = new InputWindow(title);

            return(inputWindow.ReadValue());
        }