X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fcustom-control.cs;h=adf3a42e3fd9d7f36297e325edc196b662e40184;hp=92b06109ead732190bcdcc641f1fe96d236a0ca9;hb=01bb79ad3a163f47b5b98ee2a89cbde8ddca9d3c;hpb=22b6cdee7ed55d63eac35b64b304fc771052fcee diff --git a/plugins/dali-swig/examples/custom-control.cs b/plugins/dali-swig/examples/custom-control.cs index 92b0610..adf3a42 100644 --- a/plugins/dali-swig/examples/custom-control.cs +++ b/plugins/dali-swig/examples/custom-control.cs @@ -83,8 +83,8 @@ namespace MyCSharpExample case Gesture.State.Continuing: { // Calculate the rating according to pan desture displacement - _gestureDisplacement.x += gesture.displacement.x; - int delta = (int)Math.Ceiling(_gestureDisplacement.x / 40.0f); + _gestureDisplacement.X += gesture.displacement.X; + int delta = (int)Math.Ceiling(_gestureDisplacement.X / 40.0f); _currentValue = _myRating + delta; // Clamp the rating @@ -163,7 +163,7 @@ namespace MyCSharpExample _application.Initialized += Initialize; } - public void Initialize(object source, AUIApplicationInitEventArgs e) + public void Initialize(object source, NUIApplicationInitEventArgs e) { Stage stage = Stage.GetCurrent(); stage.BackgroundColor = Color.White;