Esempio n. 1
0
 public void GoNext()
 {
     if (isNext)
     {
         aleft = this.Left;
         TimerN.Start();
     }
 }
Esempio n. 2
0
 private bool isNext = true; //是否可以开启动画
 public virtual string GoNext()
 {
     if (isNext)
     {
         aleft = this.Left;
         TimerN.Start();
     }
     return(null);
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            TimerN  nowaTimer   = new TimerN();
            MyClass someExample = new MyClass(nowaTimer);

            nowaTimer.DayMethod(6);
            nowaTimer.MinutesMethod(7);
            nowaTimer.MonthMethod(1);
            nowaTimer.SecondsMethod(2);
        }
Esempio n. 4
0
 private void TimerN_Tick(object sender, EventArgs e)
 {
     if (this.Left + this.Width > 0)
     {
         this.Left -= Speed;
     }
     else
     {
         TimerN.Stop();
         isNext = false;
     }
 }
Esempio n. 5
0
 public MyClass(TimerN time)
 {
     this.hurryUp          = time;
     this.hurryUp.MyEvent += new ChangedEventHandler(SomethingChanged); // hard with this events....
 }