Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- using System;
-
- namespace SUISSEngine
- {
- public abstract class Timer
- {
- public Timer(Action action)
- {
- this._action = action;
- this._cancelled = false;
- }
-
- public Action Action
- {
- get
- {
- return this._action;
- }
- }
-
- public bool IsCancelled
- {
- get
- {
- return this._cancelled;
- }
- }
-
- public virtual void Cancel()
- {
- this._cancelled = true;
- this._action = null;
- }
-
- protected Action _action;
-
- protected bool _cancelled;
- }
- }
|