WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=30a1ec535d180491d822938a4497cf7a8f88f2c3
commit 30a1ec535d180491d822938a4497cf7a8f88f2c3 Author: Xavi Artigas <xavierarti...@yahoo.es> Date: Wed Jan 23 07:40:13 2019 -0800 Wiki page main-loop.md changed with summary [Adapt to latest EFL# syntax] by Xavi Artigas --- pages/develop/guides/csharp/core/main-loop.md.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/develop/guides/csharp/core/main-loop.md.txt b/pages/develop/guides/csharp/core/main-loop.md.txt index ba216106d..9f398a467 100644 --- a/pages/develop/guides/csharp/core/main-loop.md.txt +++ b/pages/develop/guides/csharp/core/main-loop.md.txt @@ -25,7 +25,7 @@ For convenience, when your application starts, EFL creates one Main Loop for you In the [Hello World](/develop/tutorials/csharp/hello-world-cs.md) tutorial you learned that you can retrieve the Application Main Loop like this: ```csharp -var mainloop = efl.App.GetLoopMain(); +var mainloop = Efl.App.GetLoopMain(); ``` This guide will put the application's main loop to a variety of uses. @@ -40,8 +40,8 @@ You can find usage examples in the [EFL examples repository](https://git.enlight Timers are EFL objects. You can create them with the `new` operator as all other EFL objects, with an optional parent and initialization method (as seen in the [Hello World in C#](/develop/tutorials/csharp/hello-world-cs.md) tutorial): -```c -var timer_object = new efl.Loop_Timer(mainloop, (efl.ILoop_Timer etimer) => { +```csharp +var timer_object = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { // Timer configuration }); ``` @@ -73,6 +73,7 @@ The `Interval` property controls the amount of time between callback triggers in ```csharp timer_object.SetInterval(0.01); // In seconds timer_object.GetInterval(); +timer_object.Interval = 0.01; ``` The **time left** before the next trigger of the timer can be retrieved through the `Pending` read-only property: --