From 67a75f56d3c15313039bce86635c66e06c478e26 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Wed, 20 Jan 2016 19:33:38 +0100 Subject: [PATCH] Improved interface --- YJMPD-UWP/Helpers/Extensions.cs | 11 +++++++++ YJMPD-UWP/MainPage.xaml | 39 ++++++++++++++++++------------ YJMPD-UWP/Model/ApiHandler.cs | 1 - YJMPD-UWP/Model/NetworkHandler.cs | 9 ++++--- YJMPD-UWP/ViewModels/MainPageVM.cs | 8 ++++-- 5 files changed, 46 insertions(+), 22 deletions(-) diff --git a/YJMPD-UWP/Helpers/Extensions.cs b/YJMPD-UWP/Helpers/Extensions.cs index c017007..8b35c03 100644 --- a/YJMPD-UWP/Helpers/Extensions.cs +++ b/YJMPD-UWP/Helpers/Extensions.cs @@ -13,5 +13,16 @@ namespace YJMPD_UWP.Helpers (token.Type == JTokenType.String && token.ToString() == String.Empty) || (token.Type == JTokenType.Null); } + + public static string UppercaseFirst(this string s) + { + // Check for empty string. + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } + // Return char and concat substring. + return char.ToUpper(s[0]) + s.Substring(1).ToLower(); + } } } diff --git a/YJMPD-UWP/MainPage.xaml b/YJMPD-UWP/MainPage.xaml index c318e39..c721c11 100644 --- a/YJMPD-UWP/MainPage.xaml +++ b/YJMPD-UWP/MainPage.xaml @@ -20,12 +20,12 @@ @@ -35,15 +35,19 @@ + @@ -99,12 +103,19 @@ - + - - - - + + + + + + + + + + + @@ -115,18 +126,14 @@ - - -