Esempio n. 1
0
 public ManualResetEvent AddReflection(Control cntrl)
 {
     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, new Reflection(cntrl.Parent.BackColor));
     this.Add(pj);
     return ((Projector)pj).Wait;
 }
Esempio n. 2
0
 public ManualResetEvent Add(Control cntrl, IAnimation animation)
 {
     if (cntrl == null) return null;
     if (cntrl.IsDisposed) return null ;
     if (animation == null) return null ;
     if (Exits(cntrl)) return null;
     IScreener  cs = new ControlScreener  ( cntrl);
     IProjector  pj = new Projector( cs,  animation);
     this.Add( pj);
     return ((Projector)pj).Wait;
 }