コード例 #1
0
 void textBox1_MouseMove(object sender, MouseEventArgs e)
 {
     if (!done)
     {
         Reflection re = new Reflection(BackColor);
         animator1.AddReflection(textBox1, re);
         done = true;
     }
 }
コード例 #2
0
ファイル: Animator.cs プロジェクト: kburman/Animatrix
 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;
 }
コード例 #3
0
 private void ReflectionExample_Load(object sender, EventArgs e)
 {
     Reflection re1 = new Reflection(BackColor);
     re1.Position = Direction.Right;
     animator1.AddReflection(pictureBox1, re1);
 }