Fix coding convetion
authorGeunsun, Lee <gs86.lee@samsung.com>
Tue, 16 May 2017 23:48:22 +0000 (08:48 +0900)
committerGeunsun, Lee <gs86.lee@samsung.com>
Tue, 16 May 2017 23:48:22 +0000 (08:48 +0900)
Change-Id: I7163975b544790a27587d2c4835c23388e4c8cca

31 files changed:
TVMediaHub/TVMediaHub.Tizen/Controls/ContentPageEx.cs
TVMediaHub/TVMediaHub.Tizen/Controls/CustomImageButton.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Controls/MediaHubButton.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Models/ContentProvider.cs
TVMediaHub/TVMediaHub.Tizen/Models/MediaShortcutInfo.cs
TVMediaHub/TVMediaHub.Tizen/Models/VideoProvider.cs
TVMediaHub/TVMediaHub.Tizen/TVMediaHub.Tizen.cs
TVMediaHub/TVMediaHub.Tizen/TVMediaHub.cs
TVMediaHub/TVMediaHub.Tizen/Utils/DbgPort.cs
TVMediaHub/TVMediaHub.Tizen/Utils/EasingFunction.cs
TVMediaHub/TVMediaHub.Tizen/Utils/NinePatch.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Utils/NinePatchImageRenderer.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/ImageTabViewModel.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/MediaHubMainPageViewModel.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/VideoTabViewModel.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/VideoTabViewModelLocator.cs
TVMediaHub/TVMediaHub.Tizen/Views/FooterDeleteStatus.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/FooterNormalStatus.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageGroup.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageItem.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageTab.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageViewer.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerZoom.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/MediaHubMainPage.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/MusicTab.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/SimpleImageViewer.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoGroup.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoItem.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoPlayer.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoTab.xaml.cs

index 37b1b69..bc7eff5 100644 (file)
@@ -29,7 +29,7 @@ namespace TVMediaHub.Tizen.Controls
 
         protected override bool OnBackButtonPressed()
         {
-            if(OnBackButtonPressedHandler != null)
+            if (OnBackButtonPressedHandler != null)
             {
                 OnBackButtonPressedHandler.Invoke(this, EventArgs.Empty);
                 return true;
index 12930db..5543fc4 100755 (executable)
 
 using System;
 using System.Windows.Input;
-using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Controls
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class CustomImageButton : Image
     {
         public event EventHandler<string> OnButtonUp;
@@ -56,6 +58,7 @@ namespace TVMediaHub.Tizen.Controls
             {
                 Source = imgViewerPrefix + SubType.ToLower() + imgPressedPostFix;
             }
+
             if (Type.Equals("Zoom"))
             {
                 Source = imgZoomPrefix + SubType.ToLower() + imgPressedPostFix;
index 24139b3..a79e369 100755 (executable)
@@ -21,6 +21,9 @@ using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Controls
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class MediaHubButton : Grid
     {
         public event EventHandler Clicked;
@@ -34,6 +37,7 @@ namespace TVMediaHub.Tizen.Controls
             {
                 return (BtnIcon.Source as FileImageSource).File;
             }
+
             set
             {
                 BtnIcon.Source = value;
@@ -64,11 +68,11 @@ namespace TVMediaHub.Tizen.Controls
         {
             InitializeComponent();
 
-            initializeButton();
-            initializeFocuseBG();
+            InitializeButton();
+            InitializeFocuseBG();
         }
 
-        private void initializeButton()
+        private void InitializeButton()
         {
             Btn.Clicked += async (s, e) =>
             {
@@ -104,7 +108,7 @@ namespace TVMediaHub.Tizen.Controls
             };
         }
 
-        private void initializeFocuseBG()
+        private void InitializeFocuseBG()
         {
             Btn.Focused += (s, e) =>
             {
index 0fc6380..90ba670 100644 (file)
@@ -49,7 +49,7 @@ namespace TVMediaHub.Tizen.Models
             {
                 ContentDatabase.Connect();
             }
-            catch(Exception e)
+            catch (Exception e)
             {
                 Log.Debug(TAG, e.Message);
             }
@@ -89,6 +89,7 @@ namespace TVMediaHub.Tizen.Models
                         newGroupFlag = true;
                         newTitle = mediaInformation.DisplayName[0].ToString();
                     }
+
                     break;
                 case SortOption.Date:
                     if (lastGroupItem == null || lastGroupItem.Title != GetDateString(mediaInformation.TimeLine))
@@ -96,6 +97,7 @@ namespace TVMediaHub.Tizen.Models
                         newGroupFlag = true;
                         newTitle = GetDateString(mediaInformation.TimeLine);
                     }
+
                     break;
                 case SortOption.Genre:
                     if (lastGroupItem == null || lastGroupItem.Title != mediaInformation.Category)
@@ -103,6 +105,7 @@ namespace TVMediaHub.Tizen.Models
                         newGroupFlag = true;
                         newTitle = mediaInformation.Category;
                     }
+
                     break;
                 case SortOption.Type:
                     if (lastGroupItem == null || lastGroupItem.Title != mediaInformation.MediaType.ToString())
@@ -110,6 +113,7 @@ namespace TVMediaHub.Tizen.Models
                         newGroupFlag = true;
                         newTitle = mediaInformation.MediaType.ToString();
                     }
+
                     break;
                 default:
                     throw new System.ArgumentException("Invalid sorting option.");
@@ -185,11 +189,16 @@ namespace TVMediaHub.Tizen.Models
                 }
 
                 if (currentGroupItem != null)
+                {
                     currentGroupItem.Contents.Add(shortcutInfo);
+                }
                 else
+                {
                     throw new System.Exception("Something's wrong on making a GroupItem. Check your logic.");
+                }
 
             }
+
             return result;
         }
 
@@ -217,13 +226,19 @@ namespace TVMediaHub.Tizen.Models
             }
 
             if (offset >= 0)
+            {
                 contentFilter.Offset = offset;
+            }
 
             if (count >= 0)
+            {
                 contentFilter.Count = count;
+            }
 
             if (storageId != null)
+            {
                 contentFilter.StorageId = storageId;
+            }
 
             contentFilter.Condition = GetConditionStringForSelection();
 
@@ -240,6 +255,7 @@ namespace TVMediaHub.Tizen.Models
 
             return mediaInformations;
         }
+
         public async Task CheckThumbnail(IEnumerable<MediaShortcutInfo> list)
         {
             foreach (var info in list)
@@ -250,7 +266,7 @@ namespace TVMediaHub.Tizen.Models
                     {
                         string path = await info.Information.CreateThumbnailAsync();
                     }
-                    catch(Exception e)
+                    catch (Exception e)
                     {
                         DbgPort.D(e.Message);
                     }
@@ -284,13 +300,19 @@ namespace TVMediaHub.Tizen.Models
             }
 
             if (offset >= 0)
+            {
                 contentFilter.Offset = offset;
+            }
 
             if (count >= 0)
+            {
                 contentFilter.Count = count;
+            }
 
             if (storageId != null)
+            {
                 contentFilter.StorageId = storageId;
+            }
 
             contentFilter.Condition = GetConditionStringForSelection();
 
@@ -298,12 +320,13 @@ namespace TVMediaHub.Tizen.Models
             IEnumerable<MediaInformation> mediaInformations = new List<MediaInformation>();
             try
             {
-               mediaInformations = ContentManager.Database.SelectAll<MediaInformation>(contentFilter);
+                mediaInformations = ContentManager.Database.SelectAll<MediaInformation>(contentFilter);
             }
             catch (Exception exception)
             {
                 Log.Debug(TAG, exception.Message);
             }
+
             return mediaInformations;
         }
 
index 8cb17ed..9e21b98 100644 (file)
@@ -30,6 +30,7 @@ namespace TVMediaHub.Tizen.Models
                 handler(this, new PropertyChangedEventArgs(name));
             }
         }
+
         private bool isDeleteStatus;
 
         public bool IsDeleteStatus
@@ -38,6 +39,7 @@ namespace TVMediaHub.Tizen.Models
             {
                 return isDeleteStatus;
             }
+
             set
             {
                 if (isDeleteStatus != value)
index f4f64ee..381f36c 100755 (executable)
@@ -29,6 +29,7 @@ namespace TVMediaHub.Tizen.Models
         public VideoProvider() : base()
         {
         }
+
         protected override string GetConditionStringForSelection()
         {
             // TODO : fix this, currently VD GBM media scan recognize .ts file as text/xxxx
index 57f92a8..5925719 100644 (file)
@@ -44,7 +44,7 @@ namespace TVMediaHub.Tizen
             base.OnCreate();
 
             // TODO : due to VD's GBM binary issue.
-            if(DirectoryInfo.Resource == null || DirectoryInfo.Resource.Length < 1)
+            if (DirectoryInfo.Resource == null || DirectoryInfo.Resource.Length < 1)
             {
                 ResourceDirectoryPath = "/home/owner/apps_rw/org.tizen.xamediahub/res/";
             }
@@ -78,6 +78,7 @@ namespace TVMediaHub.Tizen
         {
             app.TransitionTo(page);
         }
+
         public static void TransitionToMain(int tabIndex = 0)
         {
             app.TransitionToMain(tabIndex);
index e4be01c..ba3aa66 100755 (executable)
@@ -39,6 +39,7 @@ namespace TVMediaHub
         /// <param name="screenHeight">Screen Height</param>
         /// <param name="dpi">Screen DPI</param>
         /// <param name="scaleRatio">Scale ratio</param>
+        /// <param name="window">Window</param>
         public App(int screenWidth, int screenHeight, int dpi, double scaleRatio, Window window)
         {
             SizeUtils.ScreenWidth = screenWidth;
@@ -58,6 +59,7 @@ namespace TVMediaHub
             {
                 DbgPort.E("Cant get model name!!!, " + e.Message);
             }
+
             MainWindow = window;
             TransitionToMain();
         }
@@ -67,6 +69,7 @@ namespace TVMediaHub
             //MainPage = page;
             AppMainPage.PushAsync(page);
         }
+
         public void TransitionToMain(int tabIndex = 0)
         {
             /*
@@ -90,6 +93,7 @@ namespace TVMediaHub
         {
             MainPage.FadeTo(0.0, 667);
         }
+
         public void RunShowAnimation()
         {
             MainPage.FadeTo(0.99, 667);
index 2ad10bc..097561e 100644 (file)
@@ -45,7 +45,7 @@ namespace TVMediaHub.Tizen.Utils
         public static void D(string message, [CallerFilePath] System.String file = "", [CallerMemberName] System.String func = "", [CallerLineNumber] System.Int32 line = 0)
         {
             Log.Debug(TAG, message, file, func, line);
-            if(IsNeedToShowInConsole)
+            if (IsNeedToShowInConsole)
             {
                 Console.WriteLine(String.Format("{0}, {1}:{2},{3}", message, file.Substring(file.LastIndexOf("\\")), line, func));
             }
index 4f99473..78519fe 100644 (file)
@@ -43,17 +43,23 @@ namespace TVMediaHub.Tizen.Utils
             double currentX;
             double guessT = a;
 
-            for(int i =0; i<limit; i++)
+            for (int i = 0; i < limit; i++)
             {
                 currentSlope = CubicBezierSlopeGet(guessT, x1, x2);
                 if (currentSlope == 0.0)
+                {
                     return guessT;
+                }
+
                 currentX = CubicBezierCalc(guessT, x1, x2) - a;
                 change = currentX / currentSlope;
                 guessT -= change;
                 if ((change < 0.01) && (change > -0.01))
+                {
                     break;
+                }
             }
+
             return guessT;
         }
 
@@ -65,7 +71,7 @@ namespace TVMediaHub.Tizen.Utils
 
         private static double CubicBezierCalc(double t, double a1, double a2)
         {
-            return ((CubicBezierA(a1,a2) * t + CubicBezierB(a1,a2)) * t + CubicBezierC(a1)) * t;
+            return ((CubicBezierA(a1, a2) * t + CubicBezierB(a1, a2)) * t + CubicBezierC(a1)) * t;
         }
 
         private static double CubicBezierA(double a1, double a2)
index 7cec6d4..c49a2a3 100755 (executable)
@@ -18,6 +18,9 @@ using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Utils
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class NinePatch : Image
     {
         /// <summary>
index 8c59893..346bf50 100755 (executable)
@@ -52,7 +52,7 @@ namespace TVMediaHub.Tizen.Utils
             {
                 UpdateBorder();
             }
-            else if(args.PropertyName == NinePatch.ImageColorProperty.PropertyName)
+            else if (args.PropertyName == NinePatch.ImageColorProperty.PropertyName)
             {
                 UpdateImageColor();
             }
index 7faeb7b..f1deb9e 100755 (executable)
@@ -24,8 +24,6 @@ using Tizen.Content.MediaContent;
 using TVMediaHub.Tizen.Models;
 using TVMediaHub.Tizen.DataModels;
 using System.Threading.Tasks;
-using TVMediaHub.Tizen.Utils;
-using System;
 using System.Collections.ObjectModel;
 using System.Threading;
 
@@ -56,6 +54,7 @@ namespace TVMediaHub.Tizen.ViewModels
                 OnPropertyChanged("CurrentImage");
             }
         }
+
         public ImageViewerInfomation CurrentImage
         {
             get
@@ -95,6 +94,7 @@ namespace TVMediaHub.Tizen.ViewModels
             {
                 return isDeleteStatus;
             }
+
             set
             {
                 if (isDeleteStatus != value)
@@ -136,7 +136,13 @@ namespace TVMediaHub.Tizen.ViewModels
         public ICommand GetInformationsCommand { get; set; }
 
         public List<MediaInformation> SelectedList { get; set; }
-        public int SelectedCount { get { return SelectedList.Count; } }
+        public int SelectedCount
+        {
+            get
+            {
+                return SelectedList.Count;
+            }
+        }
 
         public event PropertyChangedEventHandler PropertyChanged;
 
@@ -218,6 +224,7 @@ namespace TVMediaHub.Tizen.ViewModels
                     {
                         SelectedList.Add(info);
                     }
+
                     OnPropertyChanged("SelectedCount");
                 }
                 else
index 18a02fb..c4e15c0 100755 (executable)
@@ -40,6 +40,7 @@ namespace TVMediaHub.Tizen.ViewModels
                     IsFooterSelStatus = !IsFooterNorStatus;
                 }
             }
+
             get
             {
                 return isFooterNor;
@@ -55,8 +56,8 @@ namespace TVMediaHub.Tizen.ViewModels
                     isFooterSel = value;
                     OnPropertyChanged();
                 }
-
             }
+
             get
             {
                 return isFooterSel;
index 88c41cc..be92ecf 100644 (file)
@@ -73,6 +73,7 @@ namespace TVMediaHub.Tizen.ViewModels
             {
                 return isDeleteStatus;
             }
+
             set
             {
                 if (isDeleteStatus != value)
@@ -85,7 +86,14 @@ namespace TVMediaHub.Tizen.ViewModels
 
 
         public List<MediaInformation> SelectedList { get; set; }
-        public int SelectedCount { get { return SelectedList.Count; } }
+
+        public int SelectedCount
+        {
+            get
+            {
+                return SelectedList.Count;
+            }
+        }
 
         public VideoTabViewModel()
         {
index 49fe40c..1ddc4fb 100644 (file)
@@ -14,8 +14,6 @@
  * limitations under the License.
  */
 
-using TVMediaHub.Tizen.Utils;
-
 namespace TVMediaHub.Tizen.ViewModels
 {
     public class VideoTabViewModelLocator
@@ -29,6 +27,7 @@ namespace TVMediaHub.Tizen.ViewModels
                 {
                     _viewModel = new VideoTabViewModel();
                 }
+
                 return _viewModel;
             }
         }
index e3e5a4b..9f88be6 100644 (file)
@@ -22,6 +22,9 @@ using TVMediaHub.Tizen.Utils;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     [XamlCompilation(XamlCompilationOptions.Compile)]
     public partial class FooterDeleteStatus : RelativeLayout
     {
index b44d4b1..d472b13 100755 (executable)
@@ -25,6 +25,9 @@ using TVMediaHub.Tizen.DataModels;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     [XamlCompilation(XamlCompilationOptions.Compile)]
     public partial class FooterNormalStatus : RelativeLayout
     {
@@ -175,7 +178,7 @@ namespace TVMediaHub.Tizen.Views
 
             ButtonOption.Command = new Command(() =>
             {
-                showContextPopup();
+                ShowContextPopup();
             });
 
             // TODO : Change yConstraint.
@@ -202,7 +205,7 @@ namespace TVMediaHub.Tizen.Views
             ButtonOption.FontSize = SizeUtils.GetFontSize(28);
         }
 
-        private void showContextPopup()
+        private void ShowContextPopup()
         {
             if (isPopupShowing)
             {
index e956b3b..3f0aa4d 100644 (file)
  */
 
 using System;
-using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Threading.Tasks;
 using System.Windows.Input;
 using TVMediaHub.Tizen.DataModels;
 using TVMediaHub.Tizen.Models;
@@ -29,6 +27,9 @@ using Xamarin.Forms.Xaml;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     [XamlCompilation(XamlCompilationOptions.Compile)]
     public partial class ImageGroup : RelativeLayout
     {
@@ -61,6 +62,7 @@ namespace TVMediaHub.Tizen.Views
             InitializeSize();
             PropertyChanged += ImageGroupPropertyChanged;
         }
+
         private void Init()
         {
             TitleFocusArea.Clicked += (e, v) =>
@@ -156,6 +158,7 @@ namespace TVMediaHub.Tizen.Views
                     GroupContentArea.Children.Add(view, index / 3, index % 3);
                     index++;
                 }
+
                 SetFocusChain();
             }
         }
index 3d0d8de..c61df53 100755 (executable)
@@ -16,7 +16,6 @@
 
 using System;
 using System.ComponentModel;
-using System.Threading.Tasks;
 using Tizen.Content.MediaContent;
 using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms;
@@ -24,6 +23,9 @@ using Xamarin.Forms.Xaml;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     [XamlCompilation(XamlCompilationOptions.Compile)]
     public partial class ImageItem : RelativeLayout
     {
@@ -61,6 +63,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 SetValue(IsDeleteModeProperty, value);
             }
+
             get
             {
                 return (bool)GetValue(IsDeleteModeProperty);
@@ -75,6 +78,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 SetValue(ImageInfoProperty, value);
             }
+
             get
             {
                 return (MediaInformation)GetValue(ImageInfoProperty);
@@ -256,6 +260,7 @@ namespace TVMediaHub.Tizen.Views
                             ImgCheckDimmed.LayoutTo(ImageAreaFocusedBounds, 500, easing);
                             ImgCheck.LayoutTo(ImageAreaFocusedBounds, 500, easing);
                         }
+
                         ImageArea.LayoutTo(ImageAreaFocusedBounds, 500, easing);
                     }
                 });
@@ -275,6 +280,7 @@ namespace TVMediaHub.Tizen.Views
                 ImgCheckDimmed.LayoutTo(ImageAreaNormalBounds, 167, easing);
                 ImgCheck.LayoutTo(ImageAreaNormalBounds, 167, easing);
             }
+
             ImageArea.LayoutTo(ImageAreaNormalBounds, 167, easing);
         }
 
index 788e0e0..c500869 100755 (executable)
@@ -29,6 +29,9 @@ using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class ImageTab : ContentPageEx
     {
         private bool IsContentReady = false;
@@ -78,6 +81,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 return (ICommand)GetValue(OnClickCommandProperty);
             }
+
             set
             {
                 SetValue(OnClickCommandProperty, value);
@@ -179,6 +183,7 @@ namespace TVMediaHub.Tizen.Views
                     GalleryNoContents.IsVisible = false;
                     ImageTabScrollView.IsVisible = true;
                 }
+
                 var group = e.NewItems[0] as GroupItem;
                 ImageGroup galleryGroup = new ImageGroup();
                 galleryGroup.PropertyChanged += (se, ev) =>
index 83ab039..366f541 100755 (executable)
@@ -28,6 +28,9 @@ namespace TVMediaHub.Tizen.Views
 {
     using Tizen = Xamarin.Forms.PlatformConfiguration.Tizen;
 
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class ImageViewer : ContentPage
     {
         enum NaviDirection
@@ -158,7 +161,7 @@ namespace TVMediaHub.Tizen.Views
             };
         }
 
-        private void grabRemoteKeys()
+        private void GrabRemoteKeys()
         {
             foreach (var key in remoteKeys)
             {
@@ -168,7 +171,7 @@ namespace TVMediaHub.Tizen.Views
             App.MainWindow.KeyDown += RemoteKeyDownListener;
         }
 
-        private void ungrabRemoteKeys()
+        private void UngrabRemoteKeys()
         {
             App.MainWindow.KeyDown -= RemoteKeyDownListener;
 
@@ -180,10 +183,10 @@ namespace TVMediaHub.Tizen.Views
 
         private void RemoteKeyDownListener(object sender, ElmSharp.EvasKeyEventArgs e)
         {
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
         }
 
-        private void initializeTimer()
+        private void InitializeTimer()
         {
             if (timer != default(IntPtr))
             {
@@ -192,7 +195,7 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
-        private void setControlAreaState(ControlAreaState state)
+        private void SetControlAreaState(ControlAreaState state)
         {
             switch (state)
             {
@@ -202,7 +205,7 @@ namespace TVMediaHub.Tizen.Views
                         RunShowAnimation();
                     }
 
-                    initializeTimer();
+                    InitializeTimer();
 
                     break;
                 case ControlAreaState.HIDE:
@@ -211,7 +214,7 @@ namespace TVMediaHub.Tizen.Views
                         RunHideAnimation();
                     }
 
-                    initializeTimer();
+                    InitializeTimer();
 
                     break;
                 case ControlAreaState.AUTO:
@@ -221,9 +224,9 @@ namespace TVMediaHub.Tizen.Views
                         RunShowAnimation();
                     }
 
-                    initializeTimer();
+                    InitializeTimer();
 
-                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
                     break;
             }
@@ -388,12 +391,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             if (isRotationRunning)
             {
@@ -427,12 +430,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             Program.TransitionTo(new ImageViewerZoom());
         }
@@ -441,12 +444,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             if (isNaviRunning)
             {
@@ -463,12 +466,12 @@ namespace TVMediaHub.Tizen.Views
 
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             if (isNaviRunning)
             {
@@ -485,12 +488,12 @@ namespace TVMediaHub.Tizen.Views
 
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             Program.TransitionTo(new ImageViewerSlideShow());
         }
@@ -499,16 +502,16 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
-            createOptionPopup();
+            SetControlAreaState(ControlAreaState.AUTO);
+            CreateOptionPopup();
         }
 
-        private void createOptionPopup()
+        private void CreateOptionPopup()
         {
             if (isOptionPopupShowing)
             {
@@ -534,11 +537,11 @@ namespace TVMediaHub.Tizen.Views
                 {
                     case 0:
                         /// Slide Show Speed
-                        createSlideShowSpeedOptionPopup();
+                        CreateSlideShowSpeedOptionPopup();
                         break;
                     case 1:
                         /// Slide Show Effect
-                        createSlideShowEffectOptionPopup();
+                        CreateSlideShowEffectOptionPopup();
                         break;
                     default:
                         break;
@@ -554,17 +557,17 @@ namespace TVMediaHub.Tizen.Views
 
                 if (!isSpeedOptionPopupShowing && !isEffectOptionPopupShowing)
                 {
-                    setControlAreaState(ControlAreaState.AUTO);
+                    SetControlAreaState(ControlAreaState.AUTO);
                 }
             };
 
             optionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isOptionPopupShowing = true;
 
-            setControlAreaState(ControlAreaState.SHOW);
+            SetControlAreaState(ControlAreaState.SHOW);
         }
 
-        private void createSlideShowSpeedOptionPopup()
+        private void CreateSlideShowSpeedOptionPopup()
         {
             if (isSpeedOptionPopupShowing)
             {
@@ -614,14 +617,14 @@ namespace TVMediaHub.Tizen.Views
             {
                 isSpeedOptionPopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
             };
 
             speedOptionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isSpeedOptionPopupShowing = true;
         }
 
-        private void createSlideShowEffectOptionPopup()
+        private void CreateSlideShowEffectOptionPopup()
         {
             if (isEffectOptionPopupShowing)
             {
@@ -666,7 +669,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 isEffectOptionPopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
 
             };
 
@@ -704,7 +707,7 @@ namespace TVMediaHub.Tizen.Views
             OptionBtn.MediaHubButtonBtn.On<Tizen>().SetNextFocusRightView(OptionBtn.MediaHubButtonBtn);
 
             RunShowAnimation();
-            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
             if (isFirstLaunching)
             {
@@ -712,7 +715,7 @@ namespace TVMediaHub.Tizen.Views
                 isFirstLaunching = false;
             }
 
-            grabRemoteKeys();
+            GrabRemoteKeys();
         }
 
         protected override void OnDisappearing()
@@ -725,16 +728,16 @@ namespace TVMediaHub.Tizen.Views
             ControlArea.TranslationY = 93;
             ControlArea.Opacity = 0;
 
-            initializeTimer();
+            InitializeTimer();
 
-            ungrabRemoteKeys();
+            UngrabRemoteKeys();
         }
 
-        private Func<bool> hideControlAreaHandler()
+        private Func<bool> HideControlAreaHandler()
         {
-            return delegate ()
+            return delegate()
             {
-                setControlAreaState(ControlAreaState.HIDE);
+                SetControlAreaState(ControlAreaState.HIDE);
 
                 timer = default(IntPtr);
 
index d64830b..850b52e 100755 (executable)
@@ -25,6 +25,9 @@ using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class ImageViewerSlideShow : ContentPageEx
     {
         private List<ImageViewerInfomation> imageList = new List<ImageViewerInfomation>();
@@ -113,7 +116,7 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
-        private int getDelayTimeBySpeedOption()
+        private int GetDelayTimeBySpeedOption()
         {
             int delayTime = 2000;
 
@@ -135,7 +138,7 @@ namespace TVMediaHub.Tizen.Views
 
         private async void DissolveSlideShow()
         {
-            int delayTime = getDelayTimeBySpeedOption();
+            int delayTime = GetDelayTimeBySpeedOption();
             uint testDelay = Convert.ToUInt32(delayTime / 2);
             int index = imageList.IndexOf(CurrentImage);
 
@@ -217,7 +220,7 @@ namespace TVMediaHub.Tizen.Views
 
         private async void FadeoutSlideShow()
         {
-            int delayTime = getDelayTimeBySpeedOption();
+            int delayTime = GetDelayTimeBySpeedOption();
             int index = imageList.IndexOf(CurrentImage);
 
             CurrentThumbnail.Source = imageList[(index) % imageList.Count].FilePath;
index fe18e6e..3b9278c 100755 (executable)
@@ -26,6 +26,9 @@ using System;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class ImageViewerZoom : ContentPageEx
     {
         private static List<string> MoveDirection = new List<string> { "Up", "Down", "Left", "Right" };
@@ -66,10 +69,10 @@ namespace TVMediaHub.Tizen.Views
             Toast.DisplayText("Press [Back] to Escape from Zoom mode.");
 
             /// Set the current image
-            setCurrentImage();
+            SetCurrentImage();
 
             /// Create the mini map
-            createMiniMap();
+            CreateMiniMap();
 
             OnBackButtonPressedHandler += (s, e) =>
             {
@@ -81,12 +84,12 @@ namespace TVMediaHub.Tizen.Views
         protected override void InitializePage()
         {
             /// Grabs the hw keys to move the given image
-            grabMoveKeys();
+            GrabMoveKeys();
         }
 
         protected override void FinalizePage()
         {
-            ungrabMoveKeys();
+            UngrabMoveKeys();
 
             if (backgroundThumbnail != null)
             {
@@ -128,7 +131,7 @@ namespace TVMediaHub.Tizen.Views
         /// <summary>
         /// Grabs the hw keys to move the given image
         /// </summary>
-        private void grabMoveKeys()
+        private void GrabMoveKeys()
         {
             foreach (string direction in MoveDirection)
             {
@@ -142,7 +145,7 @@ namespace TVMediaHub.Tizen.Views
         /// <summary>
         /// Ungrab the hw keys
         /// </summary>
-        private void ungrabMoveKeys()
+        private void UngrabMoveKeys()
         {
             App.MainWindow.KeyUp -= MoveKeyUpListener;
             App.MainWindow.KeyDown -= MoveKeyDownListener;
@@ -198,7 +201,7 @@ namespace TVMediaHub.Tizen.Views
                     return;
                 }
 
-                ElmSharp.EcoreAnimator.AddAmimator(delegate ()
+                ElmSharp.EcoreAnimator.AddAmimator(delegate()
                 {
                     clipper.Move(clipper.Geometry.X, clipper.Geometry.Y - 1);
                     if (clipper.Geometry.Y <= toY)
@@ -225,7 +228,7 @@ namespace TVMediaHub.Tizen.Views
                     return;
                 }
 
-                ElmSharp.EcoreAnimator.AddAmimator(delegate ()
+                ElmSharp.EcoreAnimator.AddAmimator(delegate()
                 {
                     clipper.Move(clipper.Geometry.X, clipper.Geometry.Y + 1);
                     if (clipper.Geometry.Y >= toY)
@@ -252,7 +255,7 @@ namespace TVMediaHub.Tizen.Views
                     return;
                 }
 
-                ElmSharp.EcoreAnimator.AddAmimator(delegate ()
+                ElmSharp.EcoreAnimator.AddAmimator(delegate()
                 {
                     clipper.Move(clipper.Geometry.X - 1, clipper.Geometry.Y);
                     if (clipper.Geometry.X <= toX)
@@ -278,7 +281,7 @@ namespace TVMediaHub.Tizen.Views
                     return;
                 }
 
-                ElmSharp.EcoreAnimator.AddAmimator(delegate ()
+                ElmSharp.EcoreAnimator.AddAmimator(delegate()
                 {
                     clipper.Move(clipper.Geometry.X + 1, clipper.Geometry.Y);
                     if (clipper.Geometry.X >= toX)
@@ -300,7 +303,7 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
-        private void setCurrentImage()
+        private void SetCurrentImage()
         {
             CurrentImage.WidthRequest = App.MainWindow.Geometry.Width * zoomRatio;
             CurrentImage.HeightRequest = App.MainWindow.Geometry.Height * zoomRatio;
@@ -315,7 +318,7 @@ namespace TVMediaHub.Tizen.Views
             CurrentImage.Rotation = SavedRotation;
         }
 
-        private void createMiniMap()
+        private void CreateMiniMap()
         {
             Grid miniMap = new Grid()
             {
index 4d67bb0..9b78d06 100755 (executable)
@@ -24,6 +24,9 @@ using Xamarin.Forms.Xaml;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     [XamlCompilation(XamlCompilationOptions.Compile)]
     public partial class MediaHubMainPage : TabbedPage
     {
@@ -47,11 +50,12 @@ namespace TVMediaHub.Tizen.Views
         {
             base.OnAppearing();
             var page = CurrentPage as ContentPageEx;
-            if(IsAppLoaded == false)
+            if (IsAppLoaded == false)
             {
                 page.RunShowAnimation();
                 IsAppLoaded = true;
             }
+
             await App.AppMainPage.FadeTo(0.99, 667);
             Focus();
         }
index 32e8082..aa6cd50 100644 (file)
  * limitations under the License.
  */
 
-using System;
 using TVMediaHub.Tizen.Controls;
 using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class MusicTab : ContentPageEx
     {
         public MusicTab()
index c317dea..e92586c 100644 (file)
@@ -28,6 +28,9 @@ namespace TVMediaHub.Tizen.Views
 {
     using Tizen = Xamarin.Forms.PlatformConfiguration.Tizen;
 
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class SimpleImageViewer : ContentPageEx
     {
         enum ControlAreaState
@@ -136,7 +139,7 @@ namespace TVMediaHub.Tizen.Views
             };
         }
 
-        private void grabRemoteKeys()
+        private void GrabRemoteKeys()
         {
             foreach (var key in remoteKeys)
             {
@@ -146,7 +149,7 @@ namespace TVMediaHub.Tizen.Views
             App.MainWindow.KeyDown += RemoteKeyDownListener;
         }
 
-        private void ungrabRemoteKeys()
+        private void UngrabRemoteKeys()
         {
             App.MainWindow.KeyDown -= RemoteKeyDownListener;
 
@@ -158,10 +161,10 @@ namespace TVMediaHub.Tizen.Views
 
         private void RemoteKeyDownListener(object sender, ElmSharp.EvasKeyEventArgs e)
         {
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
         }
 
-        private void setControlAreaState(ControlAreaState state)
+        private void SetControlAreaState(ControlAreaState state)
         {
             switch (state)
             {
@@ -204,7 +207,7 @@ namespace TVMediaHub.Tizen.Views
                         timer = default(IntPtr);
                     }
 
-                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
                     break;
             }
@@ -258,12 +261,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             if (isRotationRunning)
             {
@@ -291,12 +294,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             Program.TransitionTo(new ImageViewerZoom());
         }
@@ -305,12 +308,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             NavigationCommand?.Execute("Left");
         }
@@ -319,12 +322,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             NavigationCommand?.Execute("Right");
         }
@@ -333,12 +336,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             Program.TransitionTo(new ImageViewerSlideShow());
         }
@@ -347,17 +350,17 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
-            createOptionPopup();
+            CreateOptionPopup();
         }
 
-        private void createOptionPopup()
+        private void CreateOptionPopup()
         {
             if (isOptionPopupShowing)
             {
@@ -383,11 +386,11 @@ namespace TVMediaHub.Tizen.Views
                 {
                     case 0:
                         /// Slide Show Speed
-                        createSlideShowSpeedOptionPopup();
+                        CreateSlideShowSpeedOptionPopup();
                         break;
                     case 1:
                         /// Slide Show Effect
-                        createSlideShowEffectOptionPopup();
+                        CreateSlideShowEffectOptionPopup();
                         break;
                     default:
                         break;
@@ -403,17 +406,17 @@ namespace TVMediaHub.Tizen.Views
 
                 if (!isSpeedOptionPopupShowing && !isEffectOptionPopupShowing)
                 {
-                    setControlAreaState(ControlAreaState.AUTO);
+                    SetControlAreaState(ControlAreaState.AUTO);
                 }
             };
 
             optionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isOptionPopupShowing = true;
 
-            setControlAreaState(ControlAreaState.SHOW);
+            SetControlAreaState(ControlAreaState.SHOW);
         }
 
-        private void createSlideShowSpeedOptionPopup()
+        private void CreateSlideShowSpeedOptionPopup()
         {
             if (isSpeedOptionPopupShowing)
             {
@@ -463,14 +466,14 @@ namespace TVMediaHub.Tizen.Views
             {
                 isSpeedOptionPopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
             };
 
             speedOptionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isSpeedOptionPopupShowing = true;
         }
 
-        private void createSlideShowEffectOptionPopup()
+        private void CreateSlideShowEffectOptionPopup()
         {
             if (isEffectOptionPopupShowing)
             {
@@ -515,7 +518,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 isEffectOptionPopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
 
             };
 
@@ -551,18 +554,18 @@ namespace TVMediaHub.Tizen.Views
             OptionBtn.MediaHubButtonBtn.On<Tizen>().SetNextFocusRightView(OptionBtn.MediaHubButtonBtn);
 
             RunShowAnimation();
-            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
             RotateBtn.MediaHubButtonBtn.Focus();
 
-            grabRemoteKeys();
+            GrabRemoteKeys();
         }
 
-        private Func<bool> hideControlAreaHandler()
+        private Func<bool> HideControlAreaHandler()
         {
-            return delegate ()
+            return delegate()
             {
-                setControlAreaState(ControlAreaState.HIDE);
+                SetControlAreaState(ControlAreaState.HIDE);
 
                 timer = default(IntPtr);
 
@@ -572,7 +575,7 @@ namespace TVMediaHub.Tizen.Views
 
         protected override void FinalizePage()
         {
-            ungrabRemoteKeys();
+            UngrabRemoteKeys();
         }
 
         public override void RunHideAnimation()
index d0cf589..a0f38e7 100644 (file)
 
 using System;
 using System.Collections.Generic;
-using System.Threading.Tasks;
 using TVMediaHub.Tizen.DataModels;
 using System.Windows.Input;
-using Tizen;
-using Tizen.Content.MediaContent;
 using TVMediaHub.Tizen.Models;
 using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms;
@@ -28,7 +25,9 @@ using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
 
 namespace TVMediaHub.Tizen.Views
 {
-
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class VideoGroup : RelativeLayout
     {
         private Xamarin.Forms.Label GroupTitle;
@@ -191,6 +190,7 @@ namespace TVMediaHub.Tizen.Views
                     GroupContentArea.Children.Add(view, index / 3, index % 3);
                     index++;
                 }
+
                 SetFocusChain();
             }
         }
index 4bc5d1e..89f4a92 100644 (file)
 
 using System;
 using System.ComponentModel;
-using System.Threading.Tasks;
 using Tizen.Content.MediaContent;
 using TVMediaHub.Tizen.Utils;
-using TVMediaHub.Tizen.Models;
 using Xamarin.Forms;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class VideoItem : RelativeLayout
     {
         private bool IsLoaded = false;
@@ -62,6 +63,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 SetValue(IsDeleteModeProperty, value);
             }
+
             get
             {
                 return (bool)GetValue(IsDeleteModeProperty);
@@ -76,6 +78,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 SetValue(VideoInfoProperty, value);
             }
+
             get
             {
                 return (MediaInformation)GetValue(VideoInfoProperty);
@@ -184,6 +187,7 @@ namespace TVMediaHub.Tizen.Views
                 CheckDimImage.LayoutTo(NormalBounds, 167, easing);
                 CheckImage.LayoutTo(NormalBounds, 167, easing);
             }
+
             ImageArea.LayoutTo(NormalBounds, 167, easing);
         }
 
index 19aa305..a22bb01 100755 (executable)
@@ -28,6 +28,9 @@ namespace TVMediaHub.Tizen.Views
 {
     using Tizen = Xamarin.Forms.PlatformConfiguration.Tizen;
 
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class VideoPlayer : ContentPageEx
     {
         enum ControlAreaState
@@ -69,6 +72,7 @@ namespace TVMediaHub.Tizen.Views
                     PlayBackRewindIndex = 0;
                 }
             }
+
             get
             {
                 if (PlayBackForwardIndex == 0 &&
@@ -76,6 +80,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     return false;
                 }
+
                 return true;
             }
         }
@@ -87,6 +92,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 playBackForwardIndex = value;
             }
+
             get
             {
                 return playBackForwardIndex % PlayBackRate.Length;
@@ -101,11 +107,13 @@ namespace TVMediaHub.Tizen.Views
             {
                 playBackRewindIndex = value;
             }
+
             get
             {
                 return playBackRewindIndex % PlayBackRate.Length;
             }
         }
+
         private float[] PlayBackRate = { 1, 2, 4 };
 
         public static readonly BindableProperty CurrentVideoProperty = BindableProperty.Create("CurrentVideo", typeof(MediaInformation), typeof(VideoPlayer), null);
@@ -173,7 +181,7 @@ namespace TVMediaHub.Tizen.Views
             };
         }
 
-        private void grabRemoteKeys()
+        private void GrabRemoteKeys()
         {
             foreach (var key in remoteKeys)
             {
@@ -183,7 +191,7 @@ namespace TVMediaHub.Tizen.Views
             App.MainWindow.KeyDown += RemoteKeyDownListener;
         }
 
-        private void ungrabRemoteKeys()
+        private void UngrabRemoteKeys()
         {
             App.MainWindow.KeyDown -= RemoteKeyDownListener;
 
@@ -195,10 +203,10 @@ namespace TVMediaHub.Tizen.Views
 
         private void RemoteKeyDownListener(object sender, ElmSharp.EvasKeyEventArgs e)
         {
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
         }
 
-        private void setControlAreaState(ControlAreaState state)
+        private void SetControlAreaState(ControlAreaState state)
         {
             switch (state)
             {
@@ -241,7 +249,7 @@ namespace TVMediaHub.Tizen.Views
                         timer = default(IntPtr);
                     }
 
-                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+                    timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
                     break;
             }
@@ -263,6 +271,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     return;
                 }
+
                 int playPosition = playerInstance.GetPlayPosition();
                 SetPlayTime(playPosition);
                 progress.Progress = (double)playPosition / duration;
@@ -354,13 +363,14 @@ namespace TVMediaHub.Tizen.Views
                     {
                         DbgPort.E("Stop Failed : " + ex.Message);
                     }
+
                     fullScreenWindow.Hide();
 
                     PausePlayBtn.NormalImage = PausePlayBtn.NormalImage.Replace("pause", "play");
                     PausePlayBtn.PressedImage = PausePlayBtn.PressedImage.Replace("pause", "play");
                     PausePlayBtn.MediaHubButtonIcon = PausePlayBtn.NormalImage;
 
-                    setControlAreaState(ControlAreaState.AUTO);
+                    SetControlAreaState(ControlAreaState.AUTO);
                 }
 
             };
@@ -469,18 +479,18 @@ namespace TVMediaHub.Tizen.Views
             OptionBtn.MediaHubButtonBtn.On<Tizen>().SetNextFocusRightView(OptionBtn.MediaHubButtonBtn);
 
             RunShowAnimation();
-            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, hideControlAreaHandler());
+            timer = ElmSharp.EcoreMainloop.AddTimer(timerInterval, HideControlAreaHandler());
 
             PausePlayBtn.MediaHubButtonBtn.Focus();
 
-            grabRemoteKeys();
+            GrabRemoteKeys();
         }
 
-        private Func<bool> hideControlAreaHandler()
+        private Func<bool> HideControlAreaHandler()
         {
-            return delegate ()
+            return delegate()
             {
-                setControlAreaState(ControlAreaState.HIDE);
+                SetControlAreaState(ControlAreaState.HIDE);
 
                 timer = default(IntPtr);
 
@@ -498,7 +508,7 @@ namespace TVMediaHub.Tizen.Views
                 timer = default(IntPtr);
             }
 
-            ungrabRemoteKeys();
+            UngrabRemoteKeys();
         }
 
         private void PlayVideo()
@@ -575,12 +585,12 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             try
             {
@@ -607,12 +617,12 @@ namespace TVMediaHub.Tizen.Views
 
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
             /*
             int playPosition = playerInstance.GetPlayPosition();
             playPosition /= 2;
@@ -659,19 +669,19 @@ namespace TVMediaHub.Tizen.Views
 
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
             if (playerInstance.State == PlayerState.Paused || playerInstance.State == PlayerState.Ready)
             {
-                setControlAreaState(ControlAreaState.SHOW);
+                SetControlAreaState(ControlAreaState.SHOW);
                 PlayVideo();
             }
             else if (playerInstance.State == PlayerState.Playing)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 try
                 {
@@ -689,11 +699,12 @@ namespace TVMediaHub.Tizen.Views
             PlayBackRewindIndex = 0;
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
+
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             try
             {
@@ -704,6 +715,7 @@ namespace TVMediaHub.Tizen.Views
                 {
                     PlayVideo();
                 }
+
                 SpeedInfo.IsVisible = true;
                 SpeedInfo.FadeTo(1.0, 100);
                 NumText.Text = PlayBackRate[PlayBackForwardIndex].ToString();
@@ -718,11 +730,11 @@ namespace TVMediaHub.Tizen.Views
         {
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
             try
             {
@@ -748,17 +760,17 @@ namespace TVMediaHub.Tizen.Views
 
             if (ControlArea.Opacity == 0)
             {
-                setControlAreaState(ControlAreaState.AUTO);
+                SetControlAreaState(ControlAreaState.AUTO);
 
                 return;
             }
 
-            setControlAreaState(ControlAreaState.AUTO);
+            SetControlAreaState(ControlAreaState.AUTO);
 
-            createOptionPopup();
+            CreateOptionPopup();
         }
 
-        private void createScreenRateOptionPopup()
+        private void CreateScreenRateOptionPopup()
         {
             if (isScreenRatePopupShowing)
             {
@@ -805,14 +817,14 @@ namespace TVMediaHub.Tizen.Views
             {
                 isScreenRatePopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
             };
 
             screenRateOptionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isScreenRatePopupShowing = true;
         }
 
-        private void createSoundEffectOptionPopup()
+        private void CreateSoundEffectOptionPopup()
         {
             if (isSoundEffectPopupShowing)
             {
@@ -859,14 +871,14 @@ namespace TVMediaHub.Tizen.Views
             {
                 isSoundEffectPopupShowing = false;
 
-                createOptionPopup();
+                CreateOptionPopup();
             };
 
             soundEffectOptionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isSoundEffectPopupShowing = true;
         }
 
-        private void createOptionPopup()
+        private void CreateOptionPopup()
         {
             if (isOptionPopupShowing)
             {
@@ -892,11 +904,11 @@ namespace TVMediaHub.Tizen.Views
                 {
                     case 0:
                         /// Screen Rate
-                        createScreenRateOptionPopup();
+                        CreateScreenRateOptionPopup();
                         break;
                     case 1:
                         /// Sound Effect
-                        createSoundEffectOptionPopup();
+                        CreateSoundEffectOptionPopup();
                         break;
                     default:
                         break;
@@ -912,14 +924,14 @@ namespace TVMediaHub.Tizen.Views
 
                 if (!isScreenRatePopupShowing && !isSoundEffectPopupShowing)
                 {
-                    setControlAreaState(ControlAreaState.AUTO);
+                    SetControlAreaState(ControlAreaState.AUTO);
                 }
             };
 
             optionPopup.Show(PopupAnchor, (PopupAnchor.Width / 2), PopupAnchor.Height);
             isOptionPopupShowing = true;
 
-            setControlAreaState(ControlAreaState.SHOW);
+            SetControlAreaState(ControlAreaState.SHOW);
         }
 
         public override void RunHideAnimation()
index 79654b1..f5af4a0 100644 (file)
@@ -28,6 +28,9 @@ using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
 
 namespace TVMediaHub.Tizen.Views
 {
+    /// <summary>
+    /// @TODO: Comment
+    /// </summary>
     public partial class VideoTab : ContentPageEx
     {
         private bool IsContentReady = false;
@@ -99,6 +102,7 @@ namespace TVMediaHub.Tizen.Views
             {
                 return (ICommand)GetValue(OnClickCommandProperty);
             }
+
             set
             {
                 SetValue(OnClickCommandProperty, value);
@@ -181,6 +185,7 @@ namespace TVMediaHub.Tizen.Views
                     VideoNoContents.IsVisible = false;
                     VideoTabScrollView.IsVisible = true;
                 }
+
                 VideoGroup groupView = new VideoGroup();
 
                 groupView.PropertyChanged += (se, ev) =>