19 writes to InitialImage
System.Windows.Forms.Tests (14)
System\Windows\Forms\PictureBoxTests.cs (14)
827InitialImage = initialImage, 1013InitialImage = value 1019pictureBox.InitialImage = value; 1030InitialImage = new Bitmap(10, 10) 1033pictureBox.InitialImage = value; 1038pictureBox.InitialImage = value; 1050pictureBox.InitialImage = value; 1055pictureBox.InitialImage = value; 1066InitialImage = new Bitmap(10, 10) 1070pictureBox.InitialImage = value; 1075pictureBox.InitialImage = value; 1088pictureBox.InitialImage = image; 1105pictureBox.InitialImage = image; 2042InitialImage = initialImage,
WinFormsControlsTest (5)
DragDrop.Designer.cs (5)
109pictureBox1.InitialImage = null; 120pictureBox2.InitialImage = null; 131pictureBox3.InitialImage = null; 142pictureBox4.InitialImage = null; 153pictureBox5.InitialImage = null;
18 references to InitialImage
System.Windows.Forms (3)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
410if (InitialImage != value) 534if ((Image is null || (_imageInstallationType == ImageInstallationType.ErrorOrInitial)) && InitialImage is not null) 536InstallNewImage(InitialImage, ImageInstallationType.ErrorOrInitial);
System.Windows.Forms.Tests (15)
System\Windows\Forms\PictureBoxTests.cs (15)
76Assert.NotNull(control.InitialImage); 77Assert.Same(control.InitialImage, control.InitialImage); 1015Assert.Same(value, pictureBox.InitialImage); 1020Assert.Same(value, pictureBox.InitialImage); 1034Assert.Same(value, pictureBox.InitialImage); 1039Assert.Same(value, pictureBox.InitialImage); 1051Assert.Same(value, pictureBox.InitialImage); 1056Assert.Same(value, pictureBox.InitialImage); 1071Assert.Same(value, pictureBox.InitialImage); 1076Assert.Same(value, pictureBox.InitialImage); 1084PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)]; 1092Assert.NotSame(image, pictureBox.InitialImage); 1101PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)]; 1109Assert.NotSame(image, pictureBox.InitialImage);