Пример #1
0
 public void Revive()
 {
     IsDead = false;
     LifeTimer.Start();
     for (int i = 0; i < panelNature.Controls.Count; i++)
     {
         if (panelNature.Controls[i] is Leaf)
         {
             ((Leaf)panelNature.Controls[i]).Revive();
         }
     }
 }
Пример #2
0
 public new void Show()
 {
     if (Visible)
     {
         Reincarnation();
         return;
     }
     //if (!Visible)
     //    Reincarnation();
     TipText.Text = _tip._Text;
     this.Height  = TipText.Height + 100;
     //this.Width = TipText.Width + 20;
     this.Location = new Point(Cursor.Position.X, Cursor.Position.Y + 20);
     base.Show();
     LifeTimer.Start();
 }
Пример #3
0
 public void LifeForm()
 {
     LifeTimer.Interval = 600;
     LifeTimer.Tick    += new EventHandler((object sender, EventArgs e) => { InviseForm(); LifeTimer.Stop(); });
     LifeTimer.Start();
 }