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