68 references to new
DesignSurface (1)
MainForm.cs (1)
158
pb1.Image = new
Icon
("painter.ico").ToBitmap();
System.Drawing.Common.Tests (38)
mono\System.Drawing\BitmapTests.cs (4)
1197
using (Icon icon =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
1215
using (Icon icon =
new
(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico")))
1233
using (Icon icon =
new
(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico")))
1251
using (Icon icon =
new
(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico")))
System\Drawing\BitmapTests.cs (5)
661
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")), 16, 16 };
662
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico")), 32, 32 };
663
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico")), 64, 64 };
664
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico")), 96, 96 };
767
using Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"));
System\Drawing\GdiPlusHandlesTests.cs (1)
25
using Icon ico =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
System\Drawing\IconConverterTests.cs (1)
21
_icon = new
Icon
(Path.Combine("bitmaps", "TestIcon.ico"));
System\Drawing\IconTests.cs (25)
40
using Icon icon =
new
(Helpers.GetTestBitmapPath(name));
89
AssertExtensions.Throws<ArgumentNullException>("path", () => new
Icon
((string)null));
222
using Icon sourceIcon =
new
(Helpers.GetTestBitmapPath(fileName));
234
using Icon sourceIcon =
new
(Helpers.GetTestBitmapPath(fileName));
281
using Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
305
Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
322
using Icon source =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
425
SaveAndCompare(new
Icon
(Helpers.GetTestBitmapPath(fileName)), true);
432
using Icon icon =
new
(filePath);
442
Icon icon =
new
(filePath);
452
using Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
459
using Icon source =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
469
using Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
479
using Icon source =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
507
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")) };
508
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("32x32_one_entry_4bit.ico")) };
509
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico")) };
510
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("64x64_one_entry_8bit.ico")) };
511
yield return new object[] { new
Icon
(Helpers.GetTestBitmapPath("96x96_one_entry_8bit.ico")) };
544
using Icon originalIcon =
new
(Helpers.GetTestBitmapPath("48x48_one_entry_1bit.ico"));
636
using Icon icon1 =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
646
using Icon icon1 =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico"));
664
using (Icon icon1 =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
679
using (Icon icon1 =
new
(Helpers.GetTestBitmapPath("16x16_one_entry_4bit.ico")))
706
Icon icon =
new
(Helpers.GetTestBitmapPath("48x48_multiple_entries_4bit.ico"));
System\Drawing\ImageConverterTests.cs (1)
38
using Icon icon =
new
(Helpers.GetTestBitmapPath(name));
System\Drawing\TextureBrushTests.cs (1)
41
using Icon icon =
new
(Helpers.GetTestBitmapPath("10x16_one_entry_32bit.ico"));
System.Windows.Forms.Design.Tests (2)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (2)
398
using Icon expected =
new
(@"Resources\Icon1.ico");
453
using Icon expected =
new
(@"Resources\Icon1.ico");
System.Windows.Forms.Tests (27)
System\Windows\Forms\ErrorProviderTests.cs (1)
1335
using Icon newIcon =
new
("bitmaps/10x16_one_entry_32bit.ico");
System\Windows\Forms\ImageList.ImageCollectionTests.cs (5)
646
yield return new object[] { transparentColor, new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
1746
yield return new object[] { new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
1777
yield return new object[] { new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
1797
yield return new object[] { index, new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
1829
yield return new object[] { new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
System\Windows\Forms\ImageListTests.cs (2)
830
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
886
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
System\Windows\Forms\NotifyIconTests.cs (19)
195
yield return new object[] { new
Icon
("bitmaps/10x16_one_entry_32bit.ico") };
217
using Icon oldValue = new(new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), 10, 10);
250
yield return new object[] { new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), 1 };
309
using Icon value =
new
("bitmaps/10x16_one_entry_32bit.ico");
333
foreach (Icon icon in new Icon[] { null,
new
("bitmaps/10x16_one_entry_32bit.ico") })
383
foreach (Icon icon in new Icon[] { null,
new
("bitmaps/10x16_one_entry_32bit.ico") })
393
yield return new object[] { false, new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), "text", "text", 0 };
394
yield return new object[] { false, new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), new string('a', NotifyIcon.MaxTextSize), new string('a', NotifyIcon.MaxTextSize), 0 };
395
yield return new object[] { true, new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), "text", "text", 1 };
396
yield return new object[] { true, new
Icon
("bitmaps/10x16_one_entry_32bit.ico"), new string('a', NotifyIcon.MaxTextSize), new string('a', NotifyIcon.MaxTextSize), 1 };
475
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
535
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
759
foreach (Icon icon in new Icon[] { null,
new
("bitmaps/10x16_one_entry_32bit.ico") })
837
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
853
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
878
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
904
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
917
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");
931
using Icon icon =
new
("bitmaps/10x16_one_entry_32bit.ico");