Example #1
0
 private void StartWarningAnimation()
 {
     if (this.DesignMode)
     {
         return;
     }
     if (AnimationController.HasAnimation(this))
     {
         return;
     }
     this.BackColor = Color.White;
     // linen ' Color.Yellow, 6
     AnimationColourChange.CreateStart((IBlendableColourDisplay)this, Color.MistyRose, 2, int.MaxValue);
 }
Example #2
0
 /// <summary>Stores any text changes, returning null on success or error message</summary>
 private string StoreTextChanges()
 {
     if (m_TextChanged)
     {
         string error = m_Script.ParseFromScript(txtScript.Text, false);
         if (error != null)
         {
             AnimationColourChange.CreateStart(btnAbandonText, Color.LightYellow, 8, 1);
             return(error);
         }
         FillCommandList();
         m_TextChanged = false;
     }
     return(null);
 }