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