- /*
- * Copyright (c) 2005 Poderosa Project, All Rights Reserved.
- * $Id: IconList.cs,v 1.2 2005/04/20 08:45:45 okajima Exp $
- */
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace Poderosa
- {
- /// <summary>
- /// IconList 偺奣梫偺愢柧偱偡丅
- /// </summary>
- internal class IconList : System.Windows.Forms.Form
- {
- System.Windows.Forms.ImageList _imageList;
- private System.ComponentModel.IContainer components;
- public IconList()
- {
- //
- // Windows 僼僅乕儉 僨僓僀僫 僒億乕僩偵昁梫偱偡丅
- //
- InitializeComponent();
- //
- // TODO: InitializeComponent 屇傃弌偟偺屻偵丄僐儞僗僩儔僋僞 僐乕僪傪捛壛偟偰偔偩偝偄丅
- //
- }
- /// <summary>
- /// 巊梡偝傟偰偄傞儕僜乕僗偵屻張棟傪幚峴偟傑偡丅
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 僼僅乕儉 僨僓僀僫偱惗惉偝傟偨僐乕僪
- /// <summary>
- /// 僨僓僀僫 僒億乕僩偵昁梫側儊僜僢僪偱偡丅偙偺儊僜僢僪偺撪梕傪
- /// 僐乕僪 僄僨傿僞偱曄峏偟側偄偱偔偩偝偄丅
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(IconList));
- this._imageList = new System.Windows.Forms.ImageList(this.components);
- //
- // _imageList
- //
- this._imageList.ImageSize = new System.Drawing.Size(16, 16);
- this._imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_imageList.ImageStream")));
- this._imageList.TransparentColor = System.Drawing.Color.Transparent;
- //
- // IconList
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
- this.ClientSize = new System.Drawing.Size(292, 266);
- this.Name = "IconList";
- this.Text = "IconList";
- }
- #endregion
- private static IconList _iconList;
- public const int ICON_NEWCONNECTION = 0;
- public const int ICON_SERIAL = 1;
- public const int ICON_CYGWIN = 2;
- public const int ICON_SFU = 3;
- public const int ICON_OPEN = 4;
- public const int ICON_SAVE = 5;
- public const int ICON_SINGLE = 6;
- public const int ICON_DIVHORIZONTAL = 7;
- public const int ICON_DIVVERTICAL = 8;
- public const int ICON_DIVHORIZONTAL3 = 9;
- public const int ICON_DIVVERTICAL3 = 10;
- public const int ICON_LOCALECHO = 11;
- public const int ICON_LINEFEED = 12;
- public const int ICON_SUSPENDLOG = 13;
- public const int ICON_COMMENTLOG = 14;
- public const int ICON_INFO = 15;
- public const int ICON_BELL = 16;
- public static Image LoadIcon(int id) {
- if(_iconList==null)
- _iconList = new IconList();
- return _iconList._imageList.Images[id];
- }
- }
- }