dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/Timers Timer.cs,1.1,1.2


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Timers Timer.cs,1.1,1.2
Date: Sat, 24 May 2003 01:40:17 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Timers
In directory subversions:/tmp/cvs-serv15110/System/Timers

Modified Files:
        Timer.cs 
Log Message:


Signature-compatibility fixes.


Index: Timer.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Timers/Timer.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Timer.cs    24 May 2003 05:16:52 -0000      1.1
--- Timer.cs    24 May 2003 05:40:15 -0000      1.2
***************
*** 30,33 ****
--- 30,35 ----
  // Don't use this class.  Use "System.Threading.Timer" instead.
  
+ [DefaultProperty("Interval")]
+ [DefaultEvent("Elapsed")]
  public class Timer : Component, ISupportInitialize
  {
***************
*** 54,57 ****
--- 56,62 ----
  
        // Get or set this object's properties.
+       [TimersDescription("TimerAutoReset")]
+       [Category("Behavior")]
+       [DefaultValue(true)]
        public bool AutoReset
                        {
***************
*** 65,68 ****
--- 70,76 ----
                                }
                        }
+       [TimersDescription("TimerEnabled")]
+       [Category("Behavior")]
+       [DefaultValue(false)]
        public bool Enabled
                        {
***************
*** 91,94 ****
--- 99,106 ----
                                }
                        }
+       [TimersDescription("TimerInterval")]
+       [Category("Behavior")]
+       [DefaultValue(100.0)]
+       [RecommendedAsConfigurable(true)]
        public double Interval
                        {
***************
*** 118,121 ****
--- 130,134 ----
                                }
                        }
+       [TimersDescription("TimerSynchronizingObject")]
        public ISynchronizeInvoke SynchronizingObject
                        {
***************
*** 131,135 ****
  
        // Begin initialization.
!       public virtual void BeginInit() {}
  
        // Close the timer.
--- 144,151 ----
  
        // Begin initialization.
!       public void BeginInit()
!                       {
!                               // Not used in this implementation.
!                       }
  
        // Close the timer.
***************
*** 140,144 ****
  
        // End initialization.
!       public virtual void EndInit() {}
  
        // Start the timer.
--- 156,163 ----
  
        // End initialization.
!       public void EndInit()
!                       {
!                               // Not used in this implementation.
!                       }
  
        // Start the timer.
***************
*** 155,158 ****
--- 174,179 ----
  
        // Event that is raised when the timer elapses.
+       [TimersDescription("TimerIntervalElapsed")]
+       [Category("Behavior")]
        public event ElapsedEventHandler Elapsed;
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]