void textBox1_MouseMove(object sender, MouseEventArgs e)
 {
     if (!done)
     {
         Reflection re = new Reflection(BackColor);
         animator1.AddReflection(textBox1, re);
         done = true;
     }
 }
Exemple #2
0
 public ManualResetEvent AddReflection(Control cntrl, Reflection reflection)
 {
     if (cntrl == null) return null;
     if (cntrl.IsDisposed) return null;
     if (Exits(cntrl)) return null;
     IScreener cs = new Reflector(cntrl);
     IProjector pj = new Projector(cs, reflection);
     this.Add(pj);
     return ((Projector)pj).Wait;
 }
 private void ReflectionExample_Load(object sender, EventArgs e)
 {
     Reflection re1 = new Reflection(BackColor);
     re1.Position = Direction.Right;
     animator1.AddReflection(pictureBox1, re1);
 }