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