X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fhello-world.cs;h=cd9b72e8411085f047c28f65b0ac18360a31b7b0;hp=c2caeb524b88225328d220a6193ffe8798fcc424;hb=cafb34548eb507bf9a0db0d11eb7154fc3481438;hpb=a0bc72c2530d445a843cc0ad5dbe047f1f6c0883 diff --git a/plugins/dali-swig/examples/hello-world.cs b/plugins/dali-swig/examples/hello-world.cs index c2caeb5..cd9b72e 100755 --- a/plugins/dali-swig/examples/hello-world.cs +++ b/plugins/dali-swig/examples/hello-world.cs @@ -40,7 +40,7 @@ namespace MyCSharpExample public Example(Dali.Application application) { _application = application; - _application.Initialized += new Dali.AUIApplicationInitEventHandler(Initialize); + _application.Initialized += Initialize; } public void Initialize(object source, AUIApplicationInitEventArgs e) @@ -49,7 +49,7 @@ namespace MyCSharpExample Stage stage = Stage.GetCurrent(); stage.BackgroundColor = NDalic.WHITE; - stage.Touched += new Dali.Stage.TouchEventHandler(OnStageTouched); + stage.Touched += OnStageTouched; // Add a _text label to the stage _text = new TextLabel("Hello Mono World"); @@ -85,11 +85,12 @@ namespace MyCSharpExample _animation = new Animation(1.0f); // 1 second of duration - _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Quaternion( new Radian( new Degree( 180.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.LINEAR), new TimePeriod(0.0f, 0.5f)); - _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Quaternion( new Radian( new Degree( 0.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.LINEAR), new TimePeriod(0.5f, 0.5f)); + _animation.AnimateTo(_text, Animation.ORIENTATION, new Quaternion( new Radian( new Degree( 180.0f ) ), Vector3.XAXIS ), new AlphaFunction(Dali.Constants.AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.0f, 0.5f)); + + _animation.AnimateTo(_text, Animation.ORIENTATION, new Quaternion( new Radian( new Degree( 0.0f ) ), Vector3.XAXIS ), new AlphaFunction(Dali.Constants.AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.5f, 0.5f)); // Connect the signal callback for animaiton finished signal - _animation.Finished += new Dali.Animation.FinishedEventHandler(AnimationFinished); + _animation.Finished += AnimationFinished; // Play the _animation _animation.Play();