summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyerim Kim <rimi.kim@samsung.com>2017-07-13 10:37:53 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-07-13 10:37:53 +0000
commit95aa0b8e4831cb96370537a0e3c0e2174ecbae3f (patch)
tree063f6994d7687c1ca5962d20d0a72a2f0d955528
parentcdef57cbf5f07aaebfb18d6b772375b4a465e5b4 (diff)
parentdd9b834a47978ba9b6b976efea824b7d16fb54c4 (diff)
downloadhome-95aa0b8e4831cb96370537a0e3c0e2174ecbae3f.tar.gz
home-95aa0b8e4831cb96370537a0e3c0e2174ecbae3f.tar.bz2
home-95aa0b8e4831cb96370537a0e3c0e2174ecbae3f.zip
Merge "Adds comments of TVApps" into tizen
-rwxr-xr-xTVApps/TVApps/Controls/AppItemCell.xaml.cs3
-rwxr-xr-xTVApps/TVApps/TVApps.cs4
-rwxr-xr-xTVApps/TVApps/ViewModels/AppsHolder.cs3
-rwxr-xr-xTVApps/TVApps/ViewModels/MainPageViewModel.cs13
-rwxr-xr-xTVApps/TVApps/Views/FooterDeleteStatus.xaml.cs3
-rwxr-xr-xTVApps/TVApps/Views/FooterNormalStatus.xaml.cs38
-rwxr-xr-xTVApps/TVApps/Views/FooterPinStatus.xaml.cs3
-rwxr-xr-xTVApps/TVApps/Views/MainPage.xaml.cs8
8 files changed, 67 insertions, 8 deletions
diff --git a/TVApps/TVApps/Controls/AppItemCell.xaml.cs b/TVApps/TVApps/Controls/AppItemCell.xaml.cs
index b53e59e..9e10d91 100755
--- a/TVApps/TVApps/Controls/AppItemCell.xaml.cs
+++ b/TVApps/TVApps/Controls/AppItemCell.xaml.cs
@@ -176,6 +176,9 @@ namespace TVApps.Controls
set { SetValue(AppDescriptionProperty, value); }
}
+ /// <summary>
+ /// A value group of height that are used in this class
+ /// </summary>
private int height16 = SizeUtils.GetHeightSize(16);
private int height32 = SizeUtils.GetHeightSize(32);
private int height84 = SizeUtils.GetHeightSize(84);
diff --git a/TVApps/TVApps/TVApps.cs b/TVApps/TVApps/TVApps.cs
index 1f014a0..66230a7 100755
--- a/TVApps/TVApps/TVApps.cs
+++ b/TVApps/TVApps/TVApps.cs
@@ -209,6 +209,10 @@ namespace TVApps
});
}
+ /// <summary>
+ /// A method will be called when the Navigation remote control key is pressed.
+ /// </summary>
+ /// <param name="keyName">A pressed remote control key name</param>
public void OnNavigationKeyPressed(string keyName)
{
diff --git a/TVApps/TVApps/ViewModels/AppsHolder.cs b/TVApps/TVApps/ViewModels/AppsHolder.cs
index 54b33c8..c441379 100755
--- a/TVApps/TVApps/ViewModels/AppsHolder.cs
+++ b/TVApps/TVApps/ViewModels/AppsHolder.cs
@@ -62,6 +62,9 @@ namespace TVApps.ViewModels
/// </summary>
public string UnpinnedAppName;
+ /// <summary>
+ /// A flag indicates whether the number of pinned apps is over 10 or not
+ /// </summary>
public bool IsSelectedExceeds;
/// <summary>
diff --git a/TVApps/TVApps/ViewModels/MainPageViewModel.cs b/TVApps/TVApps/ViewModels/MainPageViewModel.cs
index bd30362..333f39a 100755
--- a/TVApps/TVApps/ViewModels/MainPageViewModel.cs
+++ b/TVApps/TVApps/ViewModels/MainPageViewModel.cs
@@ -118,6 +118,9 @@ namespace TVApps.ViewModels
}
}
+ /// <summary>
+ /// Gets or sets a flag indicates whether the number of pinned applications is over 10 or not
+ /// </summary>
public bool IsSelectedExceeds
{
get
@@ -126,6 +129,9 @@ namespace TVApps.ViewModels
}
}
+ /// <summary>
+ /// Gets or sets a flag indicates whether the option button is needed to focus or not
+ /// </summary>
public bool SetFocusOptionButton
{
get;
@@ -167,6 +173,9 @@ namespace TVApps.ViewModels
/// </summary>
public Command DeletePopupCommand { get; set; }
+ /// <summary>
+ /// A command will be executed if the Sort DropdownList item is selected
+ /// </summary>
public Command<int> SortOptionIndexCommand { get; set; }
/// <summary>
@@ -242,10 +251,12 @@ namespace TVApps.ViewModels
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
+ /// <summary>
+ /// A flag indicates whether pin app is requested or not
+ /// </summary>
private bool isPinAppRequested = false;
/// <summary>
- /// A flag indicates whether pin app is requested or not
/// If TV Home requests pin app to TV Apps, IsPinAppRequested will be true
/// </summary>
public bool IsPinAppRequested
diff --git a/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs b/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs
index bf0e5bf..8dc85b3 100755
--- a/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs
+++ b/TVApps/TVApps/Views/FooterDeleteStatus.xaml.cs
@@ -26,6 +26,9 @@ namespace TVApps.Views
/// </summary>
public partial class FooterDeleteStatus : RelativeLayout
{
+ /// <summary>
+ /// The cancel button object
+ /// </summary>
private Button CancelButton;
/// <summary>
diff --git a/TVApps/TVApps/Views/FooterNormalStatus.xaml.cs b/TVApps/TVApps/Views/FooterNormalStatus.xaml.cs
index 4dedfc9..09cd231 100755
--- a/TVApps/TVApps/Views/FooterNormalStatus.xaml.cs
+++ b/TVApps/TVApps/Views/FooterNormalStatus.xaml.cs
@@ -19,7 +19,6 @@ using Tizen.Xamarin.Forms.Extension;
using LibTVRefCommonPortable.Utils;
using System.Windows.Input;
using System;
-using TVApps.Controls;
using System.Collections.Generic;
namespace TVApps.Views
@@ -29,15 +28,28 @@ namespace TVApps.Views
/// </summary>
public partial class FooterNormalStatus : RelativeLayout
{
+ /// <summary>
+ /// A flag indicates whether the popup is showing or not
+ /// </summary>
private bool isPopupShowing = false;
+ /// <summary>
+ /// The drop down list of sort options
+ /// </summary>
private DropdownList SortButton;
+
+ /// <summary>
+ /// The Option button object
+ /// </summary>
private Button OptionButton;
/// <summary>
- /// A command will be executed if the Pin option is selected
+ /// Identifies the PinAppCommand bindable property
/// </summary>
public static readonly BindableProperty PinAppCommandProperty = BindableProperty.Create("PinAppCommand", typeof(Command), typeof(FooterNormalStatus), null);
+ /// <summary>
+ /// A command will be executed if the Pin option is selected
+ /// </summary>
public ICommand PinAppCommand
{
get { return (ICommand)GetValue(PinAppCommandProperty); }
@@ -45,9 +57,12 @@ namespace TVApps.Views
}
/// <summary>
- /// A command will be executed if the Delete option is selected
+ /// Identifies the DeleteAppCommand bindable property
/// </summary>
public static readonly BindableProperty DeleteAppCommandProperty = BindableProperty.Create("DeleteAppCommand", typeof(Command), typeof(FooterNormalStatus), null);
+ /// <summary>
+ /// A command will be executed if the Delete option is selected
+ /// </summary>
public ICommand DeleteAppCommand
{
get { return (ICommand)GetValue(DeleteAppCommandProperty); }
@@ -55,16 +70,25 @@ namespace TVApps.Views
}
/// <summary>
- /// A command will be executed if the Sort DropdownList item is selected
+ /// Identifies the SortOptionIndexCommand bindable property
/// </summary>
public static readonly BindableProperty SortOptionIndexCommandProperty = BindableProperty.Create("SortOptionIndexCommand", typeof(Command), typeof(FooterNormalStatus), null);
+ /// <summary>
+ /// A command will be executed if the Sort DropdownList item is selected
+ /// </summary>
public ICommand SortOptionIndexCommand
{
get { return (ICommand)GetValue(SortOptionIndexCommandProperty); }
set { SetValue(SortOptionIndexCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the SetFocusOptionButton bindable property
+ /// </summary>
public static readonly BindableProperty SetFocusOptionButtonProperty = BindableProperty.Create("SetFocusOptionButton", typeof(bool), typeof(FooterNormalStatus), false, BindingMode.TwoWay);
+ /// <summary>
+ /// Gets or sets a flag indicates whether the option button is needed to focus or not
+ /// </summary>
public bool SetFocusOptionButton
{
get { return (bool)GetValue(SetFocusOptionButtonProperty); }
@@ -200,7 +224,11 @@ namespace TVApps.Views
ChangeBackKeyInfoCommand?.Execute(isPopupShowing);
}
-
+ /// <summary>
+ /// This method is called when the properties of FooterNormalStatus is changed
+ /// </summary>
+ /// <param name="sender">The source of the event</param>
+ /// <param name="e">The event that is occurred when Property is changed</param>
private void FooterNormalStatusPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName.Equals("SetFocusOptionButton"))
diff --git a/TVApps/TVApps/Views/FooterPinStatus.xaml.cs b/TVApps/TVApps/Views/FooterPinStatus.xaml.cs
index f5c808e..25a7db0 100755
--- a/TVApps/TVApps/Views/FooterPinStatus.xaml.cs
+++ b/TVApps/TVApps/Views/FooterPinStatus.xaml.cs
@@ -25,6 +25,9 @@ namespace TVApps.Views
/// </summary>
public partial class FooterPinStatus : RelativeLayout
{
+ /// <summary>
+ /// The Done button object
+ /// </summary>
private Button DoneButton;
/// <summary>
/// Gets Done Button
diff --git a/TVApps/TVApps/Views/MainPage.xaml.cs b/TVApps/TVApps/Views/MainPage.xaml.cs
index fa76298..c2fabd2 100755
--- a/TVApps/TVApps/Views/MainPage.xaml.cs
+++ b/TVApps/TVApps/Views/MainPage.xaml.cs
@@ -25,7 +25,6 @@ using System.Windows.Input;
using System.Collections.Generic;
using System.Linq;
using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
-using TVApps.Controls;
using Tizen.Xamarin.Forms.Extension;
namespace TVApps.Views
@@ -111,8 +110,13 @@ namespace TVApps.Views
set { SetValue(DeletePopupCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the IsSelectedExceeds bindable property
+ /// </summary>
public static readonly BindableProperty IsSelectedExceedsProperty = BindableProperty.Create("IsSelectedExceeds", typeof(bool), typeof(FooterPinStatus), false, BindingMode.TwoWay);
-
+ /// <summary>
+ /// Gets or sets a flag indicates whether the number of pinned applications is over 10 or not
+ /// </summary>
public bool IsSelectedExceeds
{
get { return (bool)GetValue(IsSelectedExceedsProperty); }