[NUI] Fix some typos. (#1807)
authorhuayongxu <49056704+huayongxu@users.noreply.github.com>
Wed, 15 Jul 2020 04:25:19 +0000 (12:25 +0800)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 04:25:19 +0000 (13:25 +0900)
src/Tizen.NUI.Components/Controls/Button.Internal.cs
src/Tizen.NUI.Components/Controls/Button.cs
src/Tizen.NUI.Components/Controls/FlexibleView/FlexibleViewLayoutManager.cs
src/Tizen.NUI.Components/Controls/ImageScrollBar.cs
src/Tizen.NUI.Components/Utils/StyleManager.cs

index d57c4f0..840bf73 100755 (executable)
@@ -11,7 +11,7 @@ namespace Tizen.NUI.Components
         private TextLabel buttonText;
         private ImageView buttonIcon;
 
-        private EventHandler<StateChangedEventArgs> stateChangeHander;
+        private EventHandler<StateChangedEventArgs> stateChangeHandler;
 
         private bool isSelected = false;
         private bool isEnabled = true;
@@ -123,7 +123,7 @@ namespace Tizen.NUI.Components
                     PreviousState = ControlStatesExtension.FromControlStateClass(sourceState),
                     CurrentState = ControlStatesExtension.FromControlStateClass(targetState)
                 };
-                stateChangeHander?.Invoke(this, e);
+                stateChangeHandler?.Invoke(this, e);
 
                 Extension?.OnControlStateChanged(this, new ControlStateChangedEventArgs(sourceState, targetState));
             }
index 5129836..c45c3d2 100755 (executable)
@@ -174,11 +174,11 @@ namespace Tizen.NUI.Components
         {
             add
             {
-                stateChangeHander += value;
+                stateChangeHandler += value;
             }
             remove
             {
-                stateChangeHander -= value;
+                stateChangeHandler -= value;
             }
         }
 
@@ -822,7 +822,7 @@ namespace Tizen.NUI.Components
         /// Get current text part to the attached ButtonExtension.
         /// </summary>
         /// <remarks>
-        /// It returns null if the passed extension is invaild.
+        /// It returns null if the passed extension is invalid.
         /// </remarks>
         /// <param name="extension">The extension instance that is currently attached to this Button.</param>
         /// <return>The button's text part.</return>
@@ -836,7 +836,7 @@ namespace Tizen.NUI.Components
         /// Get current icon part to the attached ButtonExtension.
         /// </summary>
         /// <remarks>
-        /// It returns null if the passed extension is invaild.
+        /// It returns null if the passed extension is invalid.
         /// </remarks>
         /// <param name="extension">The extension instance that is currently attached to this Button.</param>
         /// <return>The button's icon part.</return>
@@ -850,7 +850,7 @@ namespace Tizen.NUI.Components
         /// Get current overlay image part to the attached ButtonExtension.
         /// </summary>
         /// <remarks>
-        /// It returns null if the passed extension is invaild.
+        /// It returns null if the passed extension is invalid.
         /// </remarks>
         /// <param name="extension">The extension instance that is currently attached to this Button.</param>
         /// <return>The button's overlay image part.</return>
index 26b66f9..c6bf781 100755 (executable)
@@ -392,11 +392,11 @@ namespace Tizen.NUI.Components
                 }
 
                 // save position before animation clear.
-                float[] childrenPositon = new float[childCount];
+                float[] childrenPosition = new float[childCount];
                 for (int i = childCount - 1; i >= 0; i--)
                 {
                     FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
-                    childrenPositon[i] = v.ItemView.PositionX;
+                    childrenPosition[i] = v.ItemView.PositionX;
                 }
 
                 mScrollAni.Clear();
@@ -406,7 +406,7 @@ namespace Tizen.NUI.Components
                 {
                     FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
                     // set position again because position might be changed after animation clear.
-                    v.ItemView.PositionX = childrenPositon[i];
+                    v.ItemView.PositionX = childrenPosition[i];
                     mScrollAni.AnimateTo(v.ItemView, "PositionX", v.ItemView.PositionX + dx);
                 }
                 mScrollAni.Play();
@@ -474,11 +474,11 @@ namespace Tizen.NUI.Components
                 }
 
                 // save position before animation clear.
-                float[] childPositon = new float[childCount];
+                float[] childPosition = new float[childCount];
                 for (int i = childCount - 1; i >= 0; i--)
                 {
                     FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
-                    childPositon[i] = v.ItemView.PositionY;
+                    childPosition[i] = v.ItemView.PositionY;
                 }
 
                 mScrollAni.Clear();
@@ -488,7 +488,7 @@ namespace Tizen.NUI.Components
                 {
                     FlexibleViewViewHolder v = mChildHelper.GetChildAt(i);
                     // set position again because position might be changed after animation clear.
-                    v.ItemView.PositionY = childPositon[i];
+                    v.ItemView.PositionY = childPosition[i];
                     mScrollAni.AnimateTo(v.ItemView, "PositionY", v.ItemView.PositionY + dy);
                 }
                 mScrollAni.Play();
index 8a43ce3..4cfe86f 100755 (executable)
@@ -438,7 +438,7 @@ namespace Tizen.NUI.Components
             {
                 //TNLog.E("Current value is less than the Min value, or greater than the Max value. currentValue = " + currentValue + ";");
 #pragma warning disable CA2208 // Instantiate argument exceptions correctly
-                throw new ArgumentOutOfRangeException("Wrong Current value. It shoud be greater than the Min value, and less than the Max value!");
+                throw new ArgumentOutOfRangeException("Wrong Current value. It should be greater than the Min value, and less than the Max value!");
 #pragma warning restore CA2208 // Instantiate argument exceptions correctly
             }
 
index 2535256..388e765 100755 (executable)
@@ -47,7 +47,7 @@ namespace Tizen.NUI.Components
         /// </summary>
         private Dictionary<string, Theme> themeMap = new Dictionary<string, Theme>();
 
-        private EventHandler<ThemeChangeEventArgs> themeChangeHander;
+        private EventHandler<ThemeChangeEventArgs> themeChangeHandler;
 
         private Theme currentTheme;
 
@@ -67,11 +67,11 @@ namespace Tizen.NUI.Components
         {
             add
             {
-                themeChangeHander += value;
+                themeChangeHandler += value;
             }
             remove
             {
-                themeChangeHander -= value;
+                themeChangeHandler -= value;
             }
         }
 
@@ -97,7 +97,7 @@ namespace Tizen.NUI.Components
                 if (value != null && currentThemeName != value)
                 {
                     currentThemeName = value.ToUpperInvariant();
-                    themeChangeHander?.Invoke(null, new ThemeChangeEventArgs { CurrentTheme = currentThemeName });
+                    themeChangeHandler?.Invoke(null, new ThemeChangeEventArgs { CurrentTheme = currentThemeName });
 
                     UpdateTheme();
                 }