72 references to Add
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
125
source.
Add
(imageListImage.Name, imageListImage.Image);
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (2)
91
_owner.ImageList.Images.
Add
(value.Name, value.Image);
154
_owner.ImageList.Images.
Add
(imageListImage.Name, imageListImage.Image);
System.Windows.Forms.Tests (65)
System\Windows\Forms\ButtonBaseTests.cs (2)
2305
imageList.Images.
Add
("Image1", image1);
2306
imageList.Images.
Add
("Image2", image2);
System\Windows\Forms\ColumnHeaderTests.cs (4)
594
imageList.Images.
Add
("Image1", image1);
595
imageList.Images.
Add
("Image2", image2);
683
imageList.Images.
Add
("Image1", image1);
684
imageList.Images.
Add
("Image2", image2);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (33)
355
collection.
Add
("name1", image1);
356
collection.
Add
("name2", image2);
385
collection.
Add
("name1", image1);
386
collection.
Add
("name2", image2);
445
collection.
Add
("Key1", value);
452
collection.
Add
("Key2", value);
459
collection.
Add
("Key1", value);
465
collection.
Add
(null, value);
472
collection.
Add
(string.Empty, value);
490
collection.
Add
("Key1", value);
497
collection.
Add
("Key2", value);
504
collection.
Add
("Key1", value);
510
collection.
Add
(null, value);
517
collection.
Add
(string.Empty, value);
795
Assert.Throws<InvalidOperationException>(() => collection.
Add
("Key", (Image)null));
809
Assert.Throws<ArgumentException>(() => collection.
Add
("Key", value));
1087
collection.
Add
("name1", image1);
1088
collection.
Add
("name2", image2);
1089
collection.
Add
("name3", image3);
1243
collection.
Add
("name1", image1);
1244
collection.
Add
("name2", image2);
1245
collection.
Add
("name3", image3);
1409
collection.
Add
("image1", image1);
1410
collection.
Add
("image2", image2);
1411
collection.
Add
("image3", image3);
1449
collection.
Add
("image1", image1);
1450
collection.
Add
("image2", image2);
1451
collection.
Add
("image3", image3);
1501
collection.
Add
("image1", image1);
1502
collection.
Add
("image2", image2);
1503
collection.
Add
("image3", image3);
1546
collection.
Add
("KeyName", image1);
1567
collection.
Add
("KeyName", image1);
System\Windows\Forms\LabelTests.cs (2)
651
imageList.Images.
Add
("key1", bitmap1);
652
imageList.Images.
Add
("key2", bitmap2);
System\Windows\Forms\ListViewGroupTests.cs (1)
357
groupImageList.Images.
Add
(value.Key, new Bitmap(10, 10));
System\Windows\Forms\ToolStripItemTests.cs (3)
5002
imageList.Images.
Add
("Image", image);
5284
imageList.Images.
Add
("Image", image);
5376
imageList.Images.
Add
("Image", image);
System\Windows\Forms\TreeNodeTests.cs (12)
1413
imageList.Images.
Add
("Image1", image1);
1414
imageList.Images.
Add
("Image2", image2);
1533
imageList.Images.
Add
("Image1", image1);
1534
imageList.Images.
Add
("Image2", image2);
3397
imageList.Images.
Add
("Image1", image1);
3398
imageList.Images.
Add
("Image2", image2);
3517
imageList.Images.
Add
("Image1", image1);
3518
imageList.Images.
Add
("Image2", image2);
4145
imageList.Images.
Add
("Image1", image1);
4146
imageList.Images.
Add
("Image2", image2);
4284
imageList.Images.
Add
("Image1", image1);
4285
imageList.Images.
Add
("Image2", image2);
System\Windows\Forms\TreeViewTests.cs (8)
2127
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
2311
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
2337
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
2398
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
3487
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
3661
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
3687
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
3748
imageList.Images.
Add
("imageKey", new Bitmap(10, 10));
System.Windows.Forms.UI.IntegrationTests (1)
ToolStripTests.cs (1)
17
_sharedImageList.Images.
Add
("square", Image.FromFile("./Resources/image.png"));
WinFormsControlsTest (3)
CollectionEditors.cs (2)
26
imageList.Images.
Add
("SmallA", Image.FromFile("Images\\SmallA.bmp"));
28
imageList.Images.
Add
("LargeA", Image.FromFile("Images\\LargeA.bmp"));
ListViewTest.cs (1)
250
LargeImageList.Images.
Add
(file, bitmap);