ToString() public method

public ToString ( ) : string
return string
コード例 #1
0
ファイル: PictureBoxTest.cs プロジェクト: nlhepler/mono
		public void ToStringMethodTest ()
		{
			PictureBox myPicBox = new PictureBox ();
			Assert.AreEqual ("System.Windows.Forms.PictureBox, SizeMode: Normal", myPicBox.ToString (), "#T1");
		}
コード例 #2
0
ファイル: FrameForm.cs プロジェクト: rjl48/DigiFrame
        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++]);
        }