Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a Started indicator to Eto.Forms.UITimer.

  • Loading branch information...
commit ffb6070af8a417ec256738cfbd681ba15c7aa787 1 parent b6a5eb3
@pcdummy pcdummy authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 Source/Eto/Forms/UITimer.cs
View
10 Source/Eto/Forms/UITimer.cs
@@ -46,14 +46,22 @@ protected UITimer (Generator generator, Type type, bool initialize = true)
get { return Handler.Interval; }
set { Handler.Interval = value; }
}
-
+
+ /// <summary>
+ /// Gets a value indicating whether this <see cref="Eto.Forms.UITimer"/> is started.
+ /// </summary>
+ /// <value><c>true</c> if started; otherwise, <c>false</c>.</value>
+ public bool Started { get; private set; }
+
public void Start ()
{
+ Started = true;
Handler.Start ();
}
public void Stop ()
{
+ Started = false;
Handler.Stop ();
}
}

0 comments on commit ffb6070

Please sign in to comment.
Something went wrong with that request. Please try again.