From: Hyerim Kim Date: Wed, 12 Jul 2017 09:59:28 +0000 (+0900) Subject: Adds comments of TVApps X-Git-Tag: submit/tizen/20170808.015446~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F138503%2F1;p=profile%2Ftv%2Fapps%2Fdotnet%2Fhome.git Adds comments of TVApps Change-Id: Ib11cf17f02b9872a9f3de988d1456d0ba7cc2b5c Signed-off-by: Hyerim Kim --- 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); } } + /// + /// A value group of height that are used in this class + /// 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 }); } + /// + /// A method will be called when the Navigation remote control key is pressed. + /// + /// A pressed remote control key name 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 /// public string UnpinnedAppName; + /// + /// A flag indicates whether the number of pinned apps is over 10 or not + /// public bool IsSelectedExceeds; /// 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 } } + /// + /// Gets or sets a flag indicates whether the number of pinned applications is over 10 or not + /// public bool IsSelectedExceeds { get @@ -126,6 +129,9 @@ namespace TVApps.ViewModels } } + /// + /// Gets or sets a flag indicates whether the option button is needed to focus or not + /// public bool SetFocusOptionButton { get; @@ -167,6 +173,9 @@ namespace TVApps.ViewModels /// public Command DeletePopupCommand { get; set; } + /// + /// A command will be executed if the Sort DropdownList item is selected + /// public Command SortOptionIndexCommand { get; set; } /// @@ -242,10 +251,12 @@ namespace TVApps.ViewModels /// public event PropertyChangedEventHandler PropertyChanged; + /// + /// A flag indicates whether pin app is requested or not + /// private bool isPinAppRequested = false; /// - /// A flag indicates whether pin app is requested or not /// If TV Home requests pin app to TV Apps, IsPinAppRequested will be true /// 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 /// public partial class FooterDeleteStatus : RelativeLayout { + /// + /// The cancel button object + /// private Button CancelButton; /// 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 /// public partial class FooterNormalStatus : RelativeLayout { + /// + /// A flag indicates whether the popup is showing or not + /// private bool isPopupShowing = false; + /// + /// The drop down list of sort options + /// private DropdownList SortButton; + + /// + /// The Option button object + /// private Button OptionButton; /// - /// A command will be executed if the Pin option is selected + /// Identifies the PinAppCommand bindable property /// public static readonly BindableProperty PinAppCommandProperty = BindableProperty.Create("PinAppCommand", typeof(Command), typeof(FooterNormalStatus), null); + /// + /// A command will be executed if the Pin option is selected + /// public ICommand PinAppCommand { get { return (ICommand)GetValue(PinAppCommandProperty); } @@ -45,9 +57,12 @@ namespace TVApps.Views } /// - /// A command will be executed if the Delete option is selected + /// Identifies the DeleteAppCommand bindable property /// public static readonly BindableProperty DeleteAppCommandProperty = BindableProperty.Create("DeleteAppCommand", typeof(Command), typeof(FooterNormalStatus), null); + /// + /// A command will be executed if the Delete option is selected + /// public ICommand DeleteAppCommand { get { return (ICommand)GetValue(DeleteAppCommandProperty); } @@ -55,16 +70,25 @@ namespace TVApps.Views } /// - /// A command will be executed if the Sort DropdownList item is selected + /// Identifies the SortOptionIndexCommand bindable property /// public static readonly BindableProperty SortOptionIndexCommandProperty = BindableProperty.Create("SortOptionIndexCommand", typeof(Command), typeof(FooterNormalStatus), null); + /// + /// A command will be executed if the Sort DropdownList item is selected + /// public ICommand SortOptionIndexCommand { get { return (ICommand)GetValue(SortOptionIndexCommandProperty); } set { SetValue(SortOptionIndexCommandProperty, value); } } + /// + /// Identifies the SetFocusOptionButton bindable property + /// public static readonly BindableProperty SetFocusOptionButtonProperty = BindableProperty.Create("SetFocusOptionButton", typeof(bool), typeof(FooterNormalStatus), false, BindingMode.TwoWay); + /// + /// Gets or sets a flag indicates whether the option button is needed to focus or not + /// public bool SetFocusOptionButton { get { return (bool)GetValue(SetFocusOptionButtonProperty); } @@ -200,7 +224,11 @@ namespace TVApps.Views ChangeBackKeyInfoCommand?.Execute(isPopupShowing); } - + /// + /// This method is called when the properties of FooterNormalStatus is changed + /// + /// The source of the event + /// The event that is occurred when Property is changed 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 /// public partial class FooterPinStatus : RelativeLayout { + /// + /// The Done button object + /// private Button DoneButton; /// /// 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); } } + /// + /// Identifies the IsSelectedExceeds bindable property + /// public static readonly BindableProperty IsSelectedExceedsProperty = BindableProperty.Create("IsSelectedExceeds", typeof(bool), typeof(FooterPinStatus), false, BindingMode.TwoWay); - + /// + /// Gets or sets a flag indicates whether the number of pinned applications is over 10 or not + /// public bool IsSelectedExceeds { get { return (bool)GetValue(IsSelectedExceedsProperty); }