fix typo
[mcs.git] / class / System.Drawing / System.Drawing / SystemIcons.cs
blob67da4402508e4464f494ac9b1024295088d300f5
1 //
2 // System.Drawing.SystemIcons.cs
3 //
4 // Authors:
5 // Dennis Hayes (dennish@Raytek.com)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 // Sebastien Pouliot <sebastien@ximian.com>
8 //
9 // (C) 2002 Ximian, Inc
10 // Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 namespace System.Drawing {
34 // LAME: I don't see why the "old" (win 2.x) names were exposed in the fx :|
36 public sealed class SystemIcons {
38 static Icon[] icons;
39 private const int Application_Winlogo = 0;
40 private const int Asterisk_Information = 1;
41 private const int Error_Hand = 2;
42 private const int Exclamation_Warning = 3;
43 private const int Question_ = 4;
45 static SystemIcons ()
47 // we minimize the # of icons to load since most of them are duplicates
48 icons = new Icon [5];
49 // we use an internal .ctor to ensure the SystemIcons can't de disposed
50 icons [Application_Winlogo] = new Icon ("Mono.ico", true);
51 icons [Asterisk_Information] = new Icon ("Information.ico", true);
52 icons [Error_Hand] = new Icon ("Error.ico", true);
53 icons [Exclamation_Warning] = new Icon ("Warning.ico", true);
54 icons [Question_] = new Icon ("Question.ico", true);
57 private SystemIcons ()
61 // note: same as WinLogo (for Mono)
62 public static Icon Application {
63 get { return icons [Application_Winlogo]; }
66 // note: same as Information
67 public static Icon Asterisk {
68 get { return icons [Asterisk_Information]; }
71 // note: same as Hand
72 public static Icon Error {
73 get { return icons [Error_Hand]; }
76 // same as Warning
77 public static Icon Exclamation {
78 get { return icons [Exclamation_Warning]; }
81 // note: same as Error
82 public static Icon Hand {
83 get { return icons [Error_Hand]; }
86 // note: same as Asterisk
87 public static Icon Information {
88 get { return icons [Asterisk_Information]; }
91 public static Icon Question {
92 get { return icons [Question_]; }
95 // note: same as Exclamation
96 public static Icon Warning {
97 get { return icons [Exclamation_Warning]; }
100 // note: same as Application (for Mono)
101 public static Icon WinLogo {
102 get { return icons [Application_Winlogo]; }