public void ToStringMethodTest () { PictureBox myPicBox = new PictureBox (); Assert.AreEqual ("System.Windows.Forms.PictureBox, SizeMode: Normal", myPicBox.ToString (), "#T1"); }
void t_imgTransition_Tick(object sender, EventArgs e) { #if DEBUG System.Diagnostics.Debug.Print("Timer Triggered"); System.Diagnostics.Debug.Print("Image - {0:D}: {1}", this.img_idx, this.imageList[this.img_idx]); #endif /* Swap Picture Objects */ PictureBox tmp = this.picbx_next; this.picbx_next = this.picbx_visible; this.picbx_visible = tmp; #if DEBUG System.Diagnostics.Debug.Print(picbx_visible.ToString()); #endif this.picbx_visible.FitContainer(); this.picbx_visible.Center(); this.picbx_visible.Show(); this.picbx_next.Hide(); while (!File.Exists(this.imageList[this.img_idx]) && this.imageList.Length > this.img_idx) { this.img_idx++; } if (this.imageList.Length <= this.img_idx) { UpdateImageList(); this.img_idx = 0; } this.picbx_next.Image = Image.FromFile(this.imageList[this.img_idx++]); }