From 68e8683eabd09a85097952305d7b5167ccc54569 Mon Sep 17 00:00:00 2001 From: huayongxu <49056704+huayongxu@users.noreply.github.com> Date: Wed, 15 Jul 2020 12:25:19 +0800 Subject: [PATCH] [NUI] Fix some typos. (#1807) --- src/Tizen.NUI.Components/Controls/Button.Internal.cs | 4 ++-- src/Tizen.NUI.Components/Controls/Button.cs | 10 +++++----- .../Controls/FlexibleView/FlexibleViewLayoutManager.cs | 12 ++++++------ src/Tizen.NUI.Components/Controls/ImageScrollBar.cs | 2 +- src/Tizen.NUI.Components/Utils/StyleManager.cs | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/Button.Internal.cs b/src/Tizen.NUI.Components/Controls/Button.Internal.cs index d57c4f0..840bf73 100755 --- a/src/Tizen.NUI.Components/Controls/Button.Internal.cs +++ b/src/Tizen.NUI.Components/Controls/Button.Internal.cs @@ -11,7 +11,7 @@ namespace Tizen.NUI.Components private TextLabel buttonText; private ImageView buttonIcon; - private EventHandler stateChangeHander; + private EventHandler 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)); } diff --git a/src/Tizen.NUI.Components/Controls/Button.cs b/src/Tizen.NUI.Components/Controls/Button.cs index 5129836..c45c3d2 100755 --- a/src/Tizen.NUI.Components/Controls/Button.cs +++ b/src/Tizen.NUI.Components/Controls/Button.cs @@ -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. /// /// - /// It returns null if the passed extension is invaild. + /// It returns null if the passed extension is invalid. /// /// The extension instance that is currently attached to this Button. /// The button's text part. @@ -836,7 +836,7 @@ namespace Tizen.NUI.Components /// Get current icon part to the attached ButtonExtension. /// /// - /// It returns null if the passed extension is invaild. + /// It returns null if the passed extension is invalid. /// /// The extension instance that is currently attached to this Button. /// The button's icon part. @@ -850,7 +850,7 @@ namespace Tizen.NUI.Components /// Get current overlay image part to the attached ButtonExtension. /// /// - /// It returns null if the passed extension is invaild. + /// It returns null if the passed extension is invalid. /// /// The extension instance that is currently attached to this Button. /// The button's overlay image part. diff --git a/src/Tizen.NUI.Components/Controls/FlexibleView/FlexibleViewLayoutManager.cs b/src/Tizen.NUI.Components/Controls/FlexibleView/FlexibleViewLayoutManager.cs index 26b66f9..c6bf781 100755 --- a/src/Tizen.NUI.Components/Controls/FlexibleView/FlexibleViewLayoutManager.cs +++ b/src/Tizen.NUI.Components/Controls/FlexibleView/FlexibleViewLayoutManager.cs @@ -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(); diff --git a/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs b/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs index 8a43ce3..4cfe86f 100755 --- a/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs +++ b/src/Tizen.NUI.Components/Controls/ImageScrollBar.cs @@ -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 } diff --git a/src/Tizen.NUI.Components/Utils/StyleManager.cs b/src/Tizen.NUI.Components/Utils/StyleManager.cs index 2535256..388e765 100755 --- a/src/Tizen.NUI.Components/Utils/StyleManager.cs +++ b/src/Tizen.NUI.Components/Utils/StyleManager.cs @@ -47,7 +47,7 @@ namespace Tizen.NUI.Components /// private Dictionary themeMap = new Dictionary(); - private EventHandler themeChangeHander; + private EventHandler 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(); } -- 2.7.4