19 writes to InitialImage
System.Windows.Forms.Tests (14)
System\Windows\Forms\PictureBoxTests.cs (14)
829InitialImage = initialImage, 1015InitialImage = value 1021pictureBox.InitialImage = value; 1032InitialImage = new Bitmap(10, 10) 1035pictureBox.InitialImage = value; 1040pictureBox.InitialImage = value; 1052pictureBox.InitialImage = value; 1057pictureBox.InitialImage = value; 1068InitialImage = new Bitmap(10, 10) 1072pictureBox.InitialImage = value; 1077pictureBox.InitialImage = value; 1090pictureBox.InitialImage = image; 1107pictureBox.InitialImage = image; 2044InitialImage = 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)
78Assert.NotNull(control.InitialImage); 79Assert.Same(control.InitialImage, control.InitialImage); 1017Assert.Same(value, pictureBox.InitialImage); 1022Assert.Same(value, pictureBox.InitialImage); 1036Assert.Same(value, pictureBox.InitialImage); 1041Assert.Same(value, pictureBox.InitialImage); 1053Assert.Same(value, pictureBox.InitialImage); 1058Assert.Same(value, pictureBox.InitialImage); 1073Assert.Same(value, pictureBox.InitialImage); 1078Assert.Same(value, pictureBox.InitialImage); 1086PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)]; 1094Assert.NotSame(image, pictureBox.InitialImage); 1103PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PictureBox))[nameof(PictureBox.InitialImage)]; 1111Assert.NotSame(image, pictureBox.InitialImage);