public PLCSoftwareView(string name, int x, int y, int width, int height) : base(name, "Product Life Cycle - Software", x, y, width, height) { fMyDataBinder = new SoftwareDataBinder(this); //PreferredTransition = new SplitVerticalOut(this.BackingImage, System.Drawing.Rectangle.Empty, 0.5); PreferredTransition = new ExpandVerticalOut(this.BackingImage, System.Drawing.Rectangle.Empty, 0.5); }
public void Animate() { //PlaySound("soundtrack.wma", IntPtr.Zero, PlaySoundFlags.SND_ASYNC); // Run through some animations CrossFade animation1 = new CrossFade(fBlankImage, fPictureImage, fBlankImage.Frame, 5, 200); animation1.Run(DesktopView.MainDesktopView.GraphDevice); // Clear bitmap before next animation //fBitmap2.ClearToWhite(); CoverDown animation2 = new CoverDown(fBlankImage, fScreenImage, fBlankImage.Frame, 200); animation2.Run(DesktopView.MainDesktopView.GraphDevice); // Clear bitmap before next animation fBlankImage.ClearToWhite(); ExpandVerticalOut animation3 = new ExpandVerticalOut(fPictureImage, fBlankImage.Frame, 250); animation3.Run(DesktopView.MainDesktopView.GraphDevice); }