コード例 #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 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);
        }
コード例 #3
0
        public static string ReadValue(string title)
        {
            var inputWindow = new InputWindow(title);

            return(inputWindow.ReadValue());
        }
コード例 #4
0
 public static string ReadValue(string title)
 {
     var inputWindow = new InputWindow(title);
     return inputWindow.ReadValue();
 }