From 340d7dd87d65c3408a8ad832d609d650940459fa Mon Sep 17 00:00:00 2001 From: Heonjae Jang Date: Tue, 16 May 2017 15:41:50 +0900 Subject: Check Code format(StyleCop), Svace Change-Id: I30867ff49b7e28653470a9661a5b1bb7d878e710 Signed-off-by: Heonjae Jang --- TVHome/TVHome.TizenTV/Sniper.cs | 6 +++--- TVHome/TVHome.TizenTV/SniperInterOp.cs | 9 ++++++--- TVHome/TVHome.TizenTV/res/screenshot.png | Bin 4757 -> 71981 bytes TVHome/TVHome/Views/MainPage.xaml.cs | 8 +++++--- TVHome/TVHome/Views/SubPanel.xaml.cs | 12 +++++++++--- TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs | 2 ++ 6 files changed, 25 insertions(+), 12 deletions(-) (limited to 'TVHome') diff --git a/TVHome/TVHome.TizenTV/Sniper.cs b/TVHome/TVHome.TizenTV/Sniper.cs index 697ad7f..0c277f6 100644 --- a/TVHome/TVHome.TizenTV/Sniper.cs +++ b/TVHome/TVHome.TizenTV/Sniper.cs @@ -182,7 +182,7 @@ namespace CoreApp try { - InterOp.sniper_init(nativeWindow, callbacks, storagePath, imageWidth, imageHeight); + InterOp.Sniper_init(nativeWindow, callbacks, storagePath, imageWidth, imageHeight); } catch (DllNotFoundException e) { @@ -196,7 +196,7 @@ namespace CoreApp { try { - InterOp.sniper_fini(); + InterOp.Sniper_fini(); } catch (DllNotFoundException e) { @@ -210,7 +210,7 @@ namespace CoreApp { try { - InterOp.sniper_request_update(instanceId); + InterOp.Sniper_request_update(instanceId); } catch (DllNotFoundException e) { diff --git a/TVHome/TVHome.TizenTV/SniperInterOp.cs b/TVHome/TVHome.TizenTV/SniperInterOp.cs index ed27a86..1f88d25 100644 --- a/TVHome/TVHome.TizenTV/SniperInterOp.cs +++ b/TVHome/TVHome.TizenTV/SniperInterOp.cs @@ -3,6 +3,9 @@ using System.Runtime.InteropServices; namespace CoreApp { + /// + /// TODO : Comment this + /// internal static partial class InterOp { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] @@ -22,13 +25,13 @@ namespace CoreApp } [DllImport("sniper", CharSet = CharSet.Ansi)] - internal static extern int sniper_init(IntPtr win, SniperCallback callbacks, string path, int w, int h); + internal static extern int Sniper_init(IntPtr win, SniperCallback callbacks, string path, int w, int h); [DllImport("sniper", CharSet = CharSet.Ansi)] - internal static extern int sniper_request_update(string instanceId); + internal static extern int Sniper_request_update(string instanceId); [DllImport("sniper", CharSet = CharSet.Ansi)] - internal static extern int sniper_fini(); + internal static extern int Sniper_fini(); } } diff --git a/TVHome/TVHome.TizenTV/res/screenshot.png b/TVHome/TVHome.TizenTV/res/screenshot.png index 9e20c1d..40e57db 100755 Binary files a/TVHome/TVHome.TizenTV/res/screenshot.png and b/TVHome/TVHome.TizenTV/res/screenshot.png differ diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs index 8541d7f..17d35e1 100755 --- a/TVHome/TVHome/Views/MainPage.xaml.cs +++ b/TVHome/TVHome/Views/MainPage.xaml.cs @@ -70,7 +70,7 @@ namespace TVHome.Views SubPanelDictionary[SelectedMenuName]?.ForceHidePanel(); #pragma warning disable CS4014 SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, SizeUtils.GetHeightSize(100), 150); - SubPanelDictionary[SelectedMenuName]?.FadeTo(0,150); + SubPanelDictionary[SelectedMenuName]?.FadeTo(0, 150); DimmedBgImage.FadeTo(0.0, 150); PageMainPanel.TranslateTo(0.0, 0.0, 150); #pragma warning restore CS4014 @@ -86,7 +86,7 @@ namespace TVHome.Views #pragma warning disable CS4014 SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, 0.0, 150); SubPanelDictionary[SelectedMenuName]?.FadeTo(1.0, 150); - DimmedBgImage.FadeTo(0.5, 150); + DimmedBgImage.FadeTo(1, 150); PageMainPanel.TranslateTo(0.0, 0.0, 150); #pragma warning restore CS4014 await PageMainPanel.ScaleTo(1.0, 150); @@ -259,10 +259,11 @@ namespace TVHome.Views for (var i = 0; i < recentSubPanelButtons.Count; i++) { - if(i != 0) + if (i != 0) { recentSubPanelButtons[i].FindByName