Make TVApps displays app list temporarily
authorcskim <charles0.kim@samsung.com>
Fri, 3 Mar 2017 05:01:20 +0000 (14:01 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:44 +0000 (18:34 +0900)
Change-Id: Idc0a35363f734746040619b751313f50bcb5538a

22 files changed:
TVApps/TVApps.TizenTV/ApplicationManagerPort.cs [new file with mode: 0644]
TVApps/TVApps.TizenTV/DebuggingPort.cs [new file with mode: 0644]
TVApps/TVApps.TizenTV/SystemMessagingPort.cs [deleted file]
TVApps/TVApps.TizenTV/TVApps.TizenTV.cs
TVApps/TVApps.TizenTV/TVApps.TizenTV.csproj
TVApps/TVApps/Controls/AppItemCell.xaml
TVApps/TVApps/Controls/AppItemCell.xaml.cs
TVApps/TVApps/Controls/AppListView.xaml.cs
TVApps/TVApps/Impl/ISystemMessaging.cs [deleted file]
TVApps/TVApps/Impl/SystemMessaging.cs [deleted file]
TVApps/TVApps/TVApps.csproj
TVApps/TVApps/Utils/DebuggingUtils.cs [new file with mode: 0644]
TVApps/TVApps/Utils/IApplicationManagerAPIs.cs [new file with mode: 0644]
TVApps/TVApps/Utils/IDebuggingAPIs.cs [new file with mode: 0644]
TVApps/TVApps/ViewModels/AppsListViewModel.cs
TVApps/TVApps/Views/MainPage.xaml.cs
TVHome/TVHome.TizenTV/TVHome.TizenTV.csproj
TVHome/TVHome.TizenTV/tizen-manifest.xml
TVHome/TVHome/Controls/MainPanelButton.xaml.cs
TVHome/TVHome/Controls/SubPanelButton.xaml.cs
TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs
TVHome/TVHome/Views/SubPanel.xaml.cs

diff --git a/TVApps/TVApps.TizenTV/ApplicationManagerPort.cs b/TVApps/TVApps.TizenTV/ApplicationManagerPort.cs
new file mode 100644 (file)
index 0000000..421380b
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Xamarin.Forms.Platform.Tizen.Native;
+using Tizen;
+using Tizen.Applications;
+using TVApps.Utils;
+using TVApps.Models;
+
+namespace TVApps.TizenTV.Ports
+{
+    class ApplicationManagerPort : IApplicationManagerAPIs
+    {
+        public async Task<IEnumerable<AppItem>> GetAllInstalledApplication()
+        {
+            try
+            {
+                List<AppItem> appItemList = new List<AppItem>();
+                Task<IEnumerable<ApplicationInfo>> task = ApplicationManager.GetInstalledApplicationsAsync();
+                if (task == null)
+                {
+                    DebuggingPort.D("GetInstalledApplication failed");
+                    return null;
+                }
+
+                IEnumerable<ApplicationInfo> installedList = await task;
+
+                foreach (var appInfo in installedList)
+                {
+                    DebuggingPort.D("-------------------------------------");
+                    DebuggingPort.D("TRY" + appInfo.ToString());
+                    if (appInfo.IsNoDisplay)
+                    {
+                        continue;
+                    }
+
+                    Package pkgInfo = PackageManager.GetPackage(appInfo.PackageId);
+                    if (pkgInfo == null)
+                    {
+                        continue;
+                    }
+
+                    DebuggingPort.D("TRY" + pkgInfo.ToString());
+
+                    if (pkgInfo.IsSystemPackage)
+                    {
+                        continue;
+                    }
+
+                    DebuggingPort.D("ADD" + appInfo.ToString());
+                    AppItem item = new AppItem();
+                    item.Title = appInfo.Label;
+                    item.IconUrl = appInfo.IconPath;
+                    item.IconColor = "#00000000";
+                    appItemList.Add(item);
+                }
+
+                return appItemList;
+            }
+            catch (Exception exception)
+            {
+                DebuggingPort.E(exception.Message);
+                return null;
+            }
+        }
+
+    }
+}
\ No newline at end of file
diff --git a/TVApps/TVApps.TizenTV/DebuggingPort.cs b/TVApps/TVApps.TizenTV/DebuggingPort.cs
new file mode 100644 (file)
index 0000000..892ace1
--- /dev/null
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using Xamarin.Forms.Platform.Tizen.Native;
+using Tizen;
+using TVApps.Utils;
+
+namespace TVApps.TizenTV
+{
+    /// <summary>
+    /// Platform dependent implementation for the Logging and the Popup displaying.
+    /// DebuggingPort is implementing IDebuggingAPIs which is defined in Calculator shared project.
+    /// </summary>
+    /// <remarks>
+    /// Please refer to Xamarin Dependency Service
+    /// https://developer.xamarin.com/guides/xamarin-forms/dependency-service/introduction/
+    /// </remarks>
+    class DebuggingPort : IDebuggingAPIs
+    {
+        /// <summary>
+        /// A TV Home Windows reference. This is used to display a Dialog</summary>
+        public static Xamarin.Forms.Platform.Tizen.Native.Window MainWindow
+        {
+            set;
+            get;
+        }
+
+        /// <summary>
+        /// A Logging Tag. </summary>
+        public static string TAG = "apps";
+
+        /// <summary>
+        /// A method displays a debugging log. </summary>
+        /// <param name="message"> A debugging message.</param>
+        public void Dbg(string message)
+        {
+            Log.Debug(TAG, message);
+        }
+
+        /// <summary>
+        /// A method displays a error log. </summary>
+        /// <param name="message"> A error message.</param>
+        public void Err(string message)
+        {
+            Log.Error(TAG, message);
+        }
+
+        /// <summary>
+        /// A method displays a dialog with a given message. </summary>
+        /// <param name="message"> A debugging message.</param>
+        public void Popup(string message)
+        {
+            if (MainWindow == null)
+            {
+                return;
+            }
+            //bool result = await Xamarin.Forms.Page.DisplayAlert("Calculator", message, "OK");
+
+            Dialog toast = new Dialog(MainWindow);
+            toast.Title = message;
+            toast.Timeout = 2.3;
+            toast.BackButtonPressed += (s, e) =>
+            {
+                toast.Dismiss();
+            };
+            toast.Show();
+        }
+
+        public static void D(string message)
+        {
+            Log.Debug(TAG, message);
+        }
+
+        public static void E(string message)
+        {
+            Log.Error(TAG, message);
+        }
+
+    }
+}
\ No newline at end of file
diff --git a/TVApps/TVApps.TizenTV/SystemMessagingPort.cs b/TVApps/TVApps.TizenTV/SystemMessagingPort.cs
deleted file mode 100644 (file)
index 061e3e9..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using Tizen;
-using TVApps.Impl;
-
-namespace TVApps.TizenTV
-{
-    public class SystemMessagingPort : ISystemMessaging
-    {
-        public static string TAG = "tvapps";
-        public void Dbg(string message)
-        {
-            Log.Debug(TAG, message);
-        }
-
-        public void Err(string message)
-        {
-            Log.Error(TAG, message);
-        }
-
-        public void Toast(string message)
-        {
-            //Android.Widget.Toast.MakeText(Application.Context, message, ToastLength.Long).Show();
-        }
-    }
-}
index 4c05099c4f54330aeb68a677ace718c73815c54a..358e24cee41d6539bdb9f1de4dfb87d8b3cf9e32 100644 (file)
@@ -1,5 +1,6 @@
 using System;
 using TVApps;
+using TVApps.TizenTV.Ports;
 
 namespace TVApps.TizenTV
 {
@@ -8,13 +9,14 @@ namespace TVApps.TizenTV
         protected override void OnCreate()
         {
             base.OnCreate();
-            Xamarin.Forms.DependencyService.Register<SystemMessagingPort>();
             LoadApplication(new App());
         }
 
         static void Main(string[] args)
         {
             var app = new Program();
+            Xamarin.Forms.DependencyService.Register<DebuggingPort>();
+            Xamarin.Forms.DependencyService.Register<ApplicationManagerPort>();
             Xamarin.Forms.Platform.Tizen.Forms.Init(app);
             app.Run(args);
         }
index ea35edaf6afc713ca0f905dff2a3f6d1f1842bce..b117ab42c97abb78115393e1e840af0f03cdb4b1 100644 (file)
@@ -47,7 +47,8 @@
     <None Include="shared\res\TVApps.TizenTV.png" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="SystemMessagingPort.cs" />
+    <Compile Include="ApplicationManagerPort.cs" />
+    <Compile Include="DebuggingPort.cs" />
     <Compile Include="TVApps.TizenTV.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
index 2ab48928226ae79bda78aedf86af962345a89a3c..c72977f1d720f5654728e74acfa82cfa8620f842 100644 (file)
@@ -4,6 +4,7 @@
              x:Class="TVApps.Controls.AppItemCell">
   <AbsoluteLayout Margin="13,13,13,13">
     <Button x:Name="ItemBackgroundButton"
+            Opacity="0"
             AbsoluteLayout.LayoutBounds="0,0,210,290"/>
     <BoxView x:Name="ItemBackgroundBox"
              AbsoluteLayout.LayoutBounds="0,0,210,290"
@@ -20,6 +21,7 @@
                Source="{Binding IconUrl}"/>
       <Label Grid.Row="1"
              Grid.Column="0"
+             TextColor="#FFFFFF"
              HorizontalTextAlignment="Center"
              Text="{Binding Title}"
              FontSize="40"/>
index b47d09c9846bf07d79eafcd2fdda760ac0b9e889..18b0e2c08032d5a55ca2cb33a48e93b982fc8988 100644 (file)
@@ -22,6 +22,7 @@ using Xamarin.Forms;
 namespace TVApps.Controls
 {
     /// <summary>
+    /// hahaha
     /// </summary>
     public partial class AppItemCell : ViewCell
     {
@@ -47,7 +48,7 @@ namespace TVApps.Controls
 
         private void ItemButton_Focused(object sender, FocusEventArgs e)
         {
-            ItemBackgroundBox.Color = Color.Red;
+            ItemBackgroundBox.Color = Color.Blue;
         }
 
         private void ItemButton_Unfocused(object sender, FocusEventArgs e)
index b8f3de5456fc85ff5d01c24069423a9db3b5c610..2d3a5f3b3cd33423d4211333f882fee8b6b020c1 100644 (file)
@@ -25,6 +25,7 @@ using System.ComponentModel;
 namespace TVApps.Controls
 {
     /// <summary>
+    /// hahaha
     /// </summary>
     public partial class AppListView : ScrollView
     {
diff --git a/TVApps/TVApps/Impl/ISystemMessaging.cs b/TVApps/TVApps/Impl/ISystemMessaging.cs
deleted file mode 100644 (file)
index 0f5763a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-namespace TVApps.Impl
-{
-    public interface ISystemMessaging
-    {
-        void Toast(string message);
-        void Dbg(string message);
-        void Err(string message);
-    }
-}
diff --git a/TVApps/TVApps/Impl/SystemMessaging.cs b/TVApps/TVApps/Impl/SystemMessaging.cs
deleted file mode 100644 (file)
index 3f9e129..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-using Xamarin.Forms;
-
-namespace TVApps.Impl
-{
-    public sealed class SystemMessaging
-    {
-        private static ISystemMessaging ism;
-        private static readonly SystemMessaging instance = new SystemMessaging();
-        public static SystemMessaging Instance
-        {
-            get { return instance; }
-        }
-
-        private class DefaultSM : ISystemMessaging
-        {
-            public void Dbg(string message)
-            {
-            }
-
-            public void Err(string message)
-            {
-            }
-
-            public void Toast(string message)
-            {
-            }
-        }
-
-        private SystemMessaging()
-        {
-            ism = DependencyService.Get<ISystemMessaging>();
-        }
-
-        public static void Dbg(string message)
-        {
-            ism.Dbg(message);
-        }
-
-        public static void Err(string message)
-        {
-            ism.Err(message);
-        }
-
-        public static void Toast(string message)
-        {
-            ism.Toast(message);
-        }
-    }
-}
index 0992e0d50426e6a4a67e059bc10477332aac4ac6..15447a5c0ae863e1bd97c69e3a4aa079f378d5b0 100644 (file)
     <Compile Include="Controls\AppListView.xaml.cs">
       <DependentUpon>AppListView.xaml</DependentUpon>
     </Compile>
-    <Compile Include="Impl\ISystemMessaging.cs" />
-    <Compile Include="Impl\SystemMessaging.cs" />
     <Compile Include="Models\AppItem.cs" />
     <Compile Include="TVApps.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Utils\DebuggingUtils.cs" />
+    <Compile Include="Utils\IApplicationManagerAPIs.cs" />
+    <Compile Include="Utils\IDebuggingAPIs.cs" />
     <Compile Include="ViewModels\AppsListViewModel.cs" />
     <Compile Include="Views\MainPage.xaml.cs">
       <DependentUpon>MainPage.xaml</DependentUpon>
diff --git a/TVApps/TVApps/Utils/DebuggingUtils.cs b/TVApps/TVApps/Utils/DebuggingUtils.cs
new file mode 100644 (file)
index 0000000..42b14bc
--- /dev/null
@@ -0,0 +1,92 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using Xamarin.Forms;
+
+namespace TVApps.Utils
+{
+    /// <summary>
+    /// A debugging utility class.
+    /// </summary>
+    public sealed class DebuggingUtils
+    {
+        private static IDebuggingAPIs ism;
+        private static readonly DebuggingUtils instance = new DebuggingUtils();
+
+        /// <summary>
+        /// A method provides instance of DebuggingUtils. </summary>
+        public static DebuggingUtils Instance
+        {
+            get { return instance; }
+        }
+
+        /// <summary>
+        /// Default implementation of IDebuggingAPIs interface .
+        /// This is required for the unit testing of the Calculator application. </summary>
+        private class DefaultSM : IDebuggingAPIs
+        {
+            public void Dbg(string message)
+            {
+            }
+
+            public void Err(string message)
+            {
+            }
+
+            public void Popup(string message)
+            {
+            }
+        }
+
+        /// <summary>
+        /// DebuggingUtils constructor which set interface instance. </summary>
+        private DebuggingUtils()
+        {
+            if (DependencyService.Get<IDebuggingAPIs>() != null)
+            {
+                ism = DependencyService.Get<IDebuggingAPIs>();
+            }
+            else
+            {
+                ism = new DefaultSM();
+            }
+        }
+
+        /// <summary>
+        /// A method displays a debugging message </summary>
+        /// <param name="message"> A list of command line arguments.</param>
+        public static void Dbg(string message)
+        {
+            ism.Dbg(message);
+        }
+
+        /// <summary>
+        /// A method displays a error message </summary>
+        /// <param name="message"> A list of command line arguments.</param>
+        public static void Err(string message)
+        {
+            ism.Err(message);
+        }
+
+        /// <summary>
+        /// A method displays a pop up  message </summary>
+        /// <param name="message"> A list of command line arguments.</param>
+        public static void Popup(string message)
+        {
+            ism.Popup(message);
+        }
+    }
+}
diff --git a/TVApps/TVApps/Utils/IApplicationManagerAPIs.cs b/TVApps/TVApps/Utils/IApplicationManagerAPIs.cs
new file mode 100644 (file)
index 0000000..0fe68f0
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using TVApps.Models;
+
+namespace TVApps.Utils
+{
+    public interface IApplicationManagerAPIs
+    {
+        Task<IEnumerable<AppItem>> GetAllInstalledApplication();
+    }
+}
diff --git a/TVApps/TVApps/Utils/IDebuggingAPIs.cs b/TVApps/TVApps/Utils/IDebuggingAPIs.cs
new file mode 100644 (file)
index 0000000..a138c7c
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace TVApps.Utils
+{
+    /// <summary>
+    /// A interface contains debugging methods which are using platform subsystems.
+    /// </summary>
+    /// <remarks>
+    /// Implementing this class should be occurred in platform project.
+    /// Also the implementation should be registered to the DependencyService in a app initialization.
+    /// Please refer to Xamarin Dependency Service
+    /// https://developer.xamarin.com/guides/xamarin-forms/dependency-service/introduction/
+    /// </remarks>
+    public interface IDebuggingAPIs
+    {
+        /// <summary>
+        /// A method displays a debugging log. </summary>
+        /// <param name="message"> A debugging message.</param>
+        void Popup(string message);
+
+        /// <summary>
+        /// A method displays a error log. </summary>
+        /// <param name="message"> A error message.</param>
+        void Dbg(string message);
+
+        /// <summary>
+        /// A method displays a dialog with a given message. </summary>
+        /// <param name="message"> A debugging message.</param>
+        void Err(string message);
+    }
+}
index 64abe5064a6d568c90057ae46ab19a01af9c6a5d..bbabd86f987229748a306a7a602ee29caf090d33 100644 (file)
  * limitations under the License.
  */
 
+using System.Collections;
+using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Linq;
-
+using System.Threading.Tasks;
 using TVApps.Models;
+using TVApps.Utils;
+using Xamarin.Forms;
 
 namespace TVApps.ViewModels
 {
@@ -28,6 +32,20 @@ namespace TVApps.ViewModels
         public AppsListViewModel()
         {
             AppItems = new ObservableCollection<AppItem>();
+
+            GetInstalledApps();
+        }
+
+        private async void GetInstalledApps()
+        {
+            IApplicationManagerAPIs applicationManagerPort = DependencyService.Get<IApplicationManagerAPIs>();
+
+            IEnumerable<AppItem> appList = await applicationManagerPort.GetAllInstalledApplication();
+            foreach (var item in appList)
+            {
+                AppItems.Add(item);
+                DebuggingUtils.Dbg("ADD " + item.Title + ", " + item.IconUrl);
+            }
         }
 
         public void AddItem()
index 8948e6b9f259e68c447704dc3d1c41c3845dabb8..96d93cf551e7bf67954d0be046a9df378c4a1fad 100644 (file)
@@ -21,10 +21,11 @@ using TVApps.ViewModels;
 
 namespace TVApps.Views
 {
+    /// <summary>
+    /// hahaha
+    /// </summary>
     public partial class MainPage : ContentPage
     {
-        /// <summary>
-        /// </summary>
         public MainPage()
         {
             InitializeComponent();
index a2a12cf9faa172bf7471316a22b213a4eeb5dbed..a07544d16b51d599dcfdb07350e2b4b8b04ecde1 100644 (file)
       <Project>{7e341bf5-b7bd-4532-9d4a-aa89537b525e}</Project>\r
       <Name>TVApps.TizenTV</Name>\r
     </ProjectReference>\r
+    <ProjectReference Include="..\..\TVApps\TVApps\TVApps.csproj">\r
+      <Project>{fd8c0ef4-6cea-4421-85b7-7ac8592738c6}</Project>\r
+      <Name>TVApps</Name>\r
+    </ProjectReference>\r
     <ProjectReference Include="..\TVHome\TVHome.csproj">\r
       <Project>{54dd6673-7e64-48e6-a008-4d455e19e017}</Project>\r
       <Name>TVHome</Name>\r
index cec1b0749d5ef7688f7fc607a4cb103f8419ea02..09fcc8da5b5f171f505a597fe6d71993084ec7da 100644 (file)
@@ -23,8 +23,8 @@
                                        exec="TVApps.TizenTV.exe"\r
                                        type="dotnet"\r
                                        multiple="false"\r
-                                       taskmanage="true"\r
-                                       nodisplay="false"\r
+                                       taskmanage="false"\r
+                                       nodisplay="true"\r
                                        launch_mode="single">\r
        <icon>TVApps.TizenTV.png</icon>\r
        <label>Apps</label>\r
index 12fd4e83e35af59f1290ec0482e1b1b67141de5a..8cfca482256a24b7a27920fd462b47513a9c0acc 100755 (executable)
@@ -26,22 +26,6 @@ namespace TVHome.Controls
     /// </summary>
     public partial class MainPanelButton : PanelButton
     {
-        public BindableProperty OnFocusedCommandProperty = BindableProperty.Create("OnFocusedCommand", typeof(ICommand), typeof(MainPanelButton));
-
-        public ICommand OnFocusedCommand
-        {
-            get { return (ICommand)GetValue(OnFocusedCommandProperty); }
-            set { SetValue(OnFocusedCommandProperty, value); }
-        }
-
-        public BindableProperty OnClickedCommandProperty = BindableProperty.Create("OnClickedCommand", typeof(ICommand), typeof(MainPanelButton));
-
-        public ICommand OnClickedCommand
-        {
-            get { return (ICommand)GetValue(OnClickedCommandProperty); }
-            set { SetValue(OnClickedCommandProperty, value); }
-        }
-
         public MainPanelButton()
         {
             InitializeComponent();
@@ -67,9 +51,11 @@ namespace TVHome.Controls
                 ButtonImage.Source = "ic_tizen_home_menu_settings_focused.png";
             }
 
+#pragma warning disable CS4014
             ButtonTitle.FadeTo(0.8, 300);
             ButtonBgImage.FadeTo(0.99, 300);
             ButtonBgImage.ScaleTo(1.0, 300);
+#pragma warning restore CS4014
             await View.FadeTo(0.6, 300);
         }
 
@@ -88,9 +74,11 @@ namespace TVHome.Controls
                 ButtonImage.Source = "ic_tizen_home_menu_settings_normal.png";
             }
 
+#pragma warning disable CS4014
             ButtonTitle.FadeTo(0, 300);
             ButtonBgImage.FadeTo(0, 300);
             ButtonBgImage.ScaleTo(0.01, 300);
+#pragma warning restore CS4014
             await View.FadeTo(0.3, 300);
         }
 
index aac076fdfedd7c6eb38edb806703be2d3825cd49..5d18a81a6213eeab45a6f01c7c7a81647eba47b8 100644 (file)
@@ -48,13 +48,18 @@ namespace TVHome.Controls
                 OnFocusedCommand.Execute("");\r
             }\r
 \r
+#pragma warning disable CS4014\r
             ButtonTitle.FadeTo(0.8, 300);\r
+            ButtonTitle.FadeTo(0.99, 300);\r
+#pragma warning restore CS4014\r
             await View.FadeTo(0.6, 300);\r
         }\r
 \r
         public override async void OnUnfocused(object sender, FocusEventArgs e)\r
         {\r
+#pragma warning disable CS4014\r
             ButtonTitle.FadeTo(0, 300);\r
+#pragma warning restore CS4014\r
             await View.FadeTo(0.3, 300);\r
         }\r
     }\r
index 07e9dd30b4905d213b5f1f5ada86d1698ca7e45a..8a3ce2707b49c06792810b4fcd2640a5cb07ac52 100644 (file)
@@ -62,7 +62,9 @@ namespace TVHome.Controls
             //Animation.Add(0, 1, titleAnimation);
             //Animation.Commit(ThumbnailTitle, "FocusedAnimation", 16, 300);
 
+#pragma warning disable CS4014
             ThumbnailTitle.FadeTo(0.99, 300);
+#pragma warning restore CS4014
             await View.FadeTo(0.6, 300);
         }
 
@@ -82,7 +84,9 @@ namespace TVHome.Controls
             //Animation.Add(0, 1, titleAnimation);
             //Animation.Commit(ThumbnailTitle, "UnfocusedAnimation", 16, 300);
 
+#pragma warning disable CS4014
             ThumbnailTitle.FadeTo(0, 300);
+#pragma warning restore CS4014
             await View.FadeTo(0.3, 300);
         }
     }
index 7e66a8cecb9f7cfbdf3c9de45a6a779d895d2d75..c067d11826ebf6bb846a461c95b42c5a35c6e465 100644 (file)
@@ -91,8 +91,10 @@ namespace TVHome.Views
                 item.IsEnabled = false;\r
             }\r
 \r
+#pragma warning disable CS4014\r
             PanelScrollView.ScrollToAsync(0, 0, true);\r
             this.TranslateTo(0, 1, 0);\r
+#pragma warning restore CS4014\r
             await this.FadeTo(0, 0);\r
         }\r
 \r
@@ -104,7 +106,9 @@ namespace TVHome.Views
                 item.IsEnabled = true;\r
             }\r
 \r
+#pragma warning disable CS4014\r
             this.TranslateTo(0, 0, 0);\r
+#pragma warning restore CS4014\r
             await this.FadeTo(0.3, 0);\r
         }\r
 \r
@@ -119,7 +123,9 @@ namespace TVHome.Views
             var button = PanelButtonStack.Children[1] as RelativeLayout;\r
             button.FindByName<Button>("ButtonFocusArea").Focus();\r
 \r
+#pragma warning disable CS4014\r
             this.TranslateTo(0, -140, 300);\r
+#pragma warning restore CS4014\r
             await this.FadeTo(0.99, 300);\r
         }\r
     }\r