Add comments for TVHome.Controls
authorHyerim Kim <rimi.kim@samsung.com>
Wed, 29 Mar 2017 05:55:59 +0000 (14:55 +0900)
committerChulSeung Kim <charles0.kim@samsung.com>
Thu, 8 Jun 2017 09:34:51 +0000 (18:34 +0900)
Change-Id: I5c035310dd93f88f7d0cf49f6a46f9be4c34f2a5
Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
TVHome/TVHome/Controls/MainPanelButton.xaml.cs
TVHome/TVHome/Controls/PanelButton.cs [changed mode: 0644->0755]
TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs
TVHome/TVHome/Controls/SubPanelButton.xaml.cs
TVHome/TVHome/Controls/SubPanelReservedButton.xaml.cs
TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs [changed mode: 0644->0755]

index 1069aaf..1942141 100755 (executable)
@@ -24,6 +24,9 @@ namespace TVHome.Controls
     /// </summary>
     public partial class MainPanelButton : PanelButton
     {
+        /// <summary>
+        /// The property for checking button's status
+        /// </summary>
         public static readonly BindableProperty StatusProperty = BindableProperty.Create("Status", typeof(string), typeof(PanelButton), default(string));
 
         public string Status
@@ -32,12 +35,21 @@ namespace TVHome.Controls
             set { SetValue(StatusProperty, value); }
         }
 
+        /// <summary>
+        /// The constructor of this class
+        /// </summary>
         public MainPanelButton()
         {
             InitializeComponent();
             PropertyChanged += MainPanelButton_PropertyChanged;
         }
 
+        /// <summary>
+        /// Handles MainPanelButton Property Changed event
+        /// Runs animation according to property change of MainPanelButton
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when property of MainPanelButton is changed</param>
         private void MainPanelButton_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
         {
             if (e.PropertyName.CompareTo("Status") == 0)
@@ -79,6 +91,11 @@ namespace TVHome.Controls
             }
         }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public override void OnFocused(object sender, FocusEventArgs e)
         {
             if (OnFocusedCommand != null)
@@ -87,10 +104,20 @@ namespace TVHome.Controls
             }
         }
 
+        /// <summary>
+        /// Handles Button Unfocused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is unfocused</param>
         public override void OnUnfocused(object sender, FocusEventArgs e)
         {
         }
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public override void OnClicked(object sender, EventArgs e)
         {
             if (OnClickedCommand != null)
old mode 100644 (file)
new mode 100755 (executable)
index 78fe1fc..4f1b236
@@ -20,17 +20,41 @@ using Xamarin.Forms;
 
 namespace TVHome.Controls
 {
+    /// <summary>
+    /// TVHome has two panels, MainPanel and SubPanel. The panels have several panel buttons.
+    /// The class for handling panel button's events
+    /// </summary>
     public abstract class PanelButton : ViewCell
     {
-
+        /// <summary>
+        /// A Command will be executed the button is focused.
+        /// </summary>
         public ICommand OnFocusedCommand { get; set; }
 
+        /// <summary>
+        /// A Command will be executed the button is clicked.
+        /// </summary>
         public ICommand OnClickedCommand { get; set; }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public abstract void OnFocused(object sender, FocusEventArgs e);
 
+        /// <summary>
+        /// Handles Button Unfocused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is unfocused</param>
         public abstract void OnUnfocused(object sender, FocusEventArgs e);
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public abstract void OnClicked(object sender, EventArgs e);
     }
 }
index 244f20b..67473e0 100755 (executable)
  */
 
 using System;
-
 using LibTVRefCommonPortable.Utils;
-
 using Xamarin.Forms;
 
 namespace TVHome.Controls
 {
     /// <summary>
-    /// haha
+    /// Custom Control for Button in Sub Panel
     /// </summary>
     public partial class SubPanelAllAppsButton : PanelButton
     {
+        /// <summary>
+        /// Constructor
+        /// </summary>
         public SubPanelAllAppsButton()
         {
             InitializeComponent();
         }
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public override async void OnClicked(object sender, EventArgs e)
         {
             if (OnClickedCommand != null)
@@ -42,6 +48,11 @@ namespace TVHome.Controls
             await View.FadeTo(0.99, 300);
         }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public override async void OnFocused(object sender, FocusEventArgs e)
         {
             if (OnFocusedCommand != null)
index 5093a59..436a8bc 100755 (executable)
@@ -26,11 +26,19 @@ namespace TVHome.Controls
     /// </summary>
     public partial class SubPanelButton : PanelButton
     {
+        /// <summary>
+        /// Constructor
+        /// </summary>
         public SubPanelButton()
         {
             InitializeComponent();
         }
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public override async void OnClicked(object sender, EventArgs e)
         {
             if (OnClickedCommand != null)
@@ -41,6 +49,11 @@ namespace TVHome.Controls
             await View.FadeTo(0.99, 300);
         }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public override async void OnFocused(object sender, FocusEventArgs e)
         {
             if (OnFocusedCommand != null)
@@ -55,6 +68,11 @@ namespace TVHome.Controls
             await ButtonImage.ScaleTo(1.3, 300);
         }
 
+        /// <summary>
+        /// Handles Button Unfocused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is unfocused</param>
         public override async void OnUnfocused(object sender, FocusEventArgs e)
         {
 #pragma warning disable CS4014
index 1f403ea..663c510 100755 (executable)
@@ -26,11 +26,19 @@ namespace TVHome.Controls
     /// </summary>
     public partial class SubPanelReservedButton : PanelButton
     {
+        /// <summary>
+        /// Constructor
+        /// </summary>
         public SubPanelReservedButton()
         {
             InitializeComponent();
         }
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public override async void OnClicked(object sender, EventArgs e)
         {
             if (OnClickedCommand != null)
@@ -41,6 +49,11 @@ namespace TVHome.Controls
             await View.FadeTo(0.99, 300);
         }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public override async void OnFocused(object sender, FocusEventArgs e)
         {
             if (OnFocusedCommand != null)
@@ -56,6 +69,11 @@ namespace TVHome.Controls
             await ButtonBgImage.ScaleTo(1.3, 300);
         }
 
+        /// <summary>
+        /// Handles Button Unfocused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is unfocused</param>
         public override async void OnUnfocused(object sender, FocusEventArgs e)
         {
 #pragma warning disable CS4014
old mode 100644 (file)
new mode 100755 (executable)
index e8e220a..1666906
@@ -23,6 +23,9 @@ namespace TVHome.Controls
     /// </summary>
     public partial class SubPanelThumbnailButton : PanelButton
     {
+        /// <summary>
+        /// Constructor
+        /// </summary>
         public SubPanelThumbnailButton()
         {
             InitializeComponent();
@@ -32,6 +35,11 @@ namespace TVHome.Controls
         {
         }
 
+        /// <summary>
+        /// Handles Button Clicked event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is clicked</param>
         public override async void OnClicked(object sender, EventArgs e)
         {
             if (OnClickedCommand != null)
@@ -42,6 +50,11 @@ namespace TVHome.Controls
             await View.FadeTo(0.9, 300);
         }
 
+        /// <summary>
+        /// Handles Button Focused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is focused</param>
         public override async void OnFocused(object sender, FocusEventArgs e)
         {
             if (OnFocusedCommand != null)
@@ -69,6 +82,11 @@ namespace TVHome.Controls
             await View.ScaleTo(1.11, 300);
         }
 
+        /// <summary>
+        /// Handles Button Unfocused event
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">The event that is occurred when button is unfocused</param>
         public override async void OnUnfocused(object sender, FocusEventArgs e)
         {
             // Height, Width 확장 Animiation