Inheritance: System.Collections.ArrayList
コード例 #1
1
ファイル: CustomList.cs プロジェクト: pmprog/OpenXCOM.Tools
		protected CustomList(string name)
		{
			this.name=name;
			SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.DoubleBuffer|ControlStyles.UserPaint,true);

			collection = new ArrayList();

			vert = new VScrollBar();
			vert.Height=Height;
			vert.Location=new Point(Width-vert.Width,0);
			vert.Minimum=0;
			vert.Maximum=1;
			vert.Scroll+=new ScrollEventHandler(scroll);
			Controls.Add(vert);

			strList = new string[]{"Edit","Delete"};

			border = Border3DStyle.Etched;
			bStyle=BorderStyle.None;

			properties = new StrPropertyList();

			StrProperty.Update+=new NoArgsDelegate(Refresh);
//			allowedChars = new Hashtable();
//			allowedChars[Keys.Space]=' ';
		}
コード例 #2
0
ファイル: CustomList.cs プロジェクト: ratzlaff/XCom-tools
        protected CustomList(string name)
        {
            this.name = name;
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);

            collection = new ArrayList();

            vert          = new VScrollBar();
            vert.Height   = Height;
            vert.Location = new Point(Width - vert.Width, 0);
            vert.Minimum  = 0;
            vert.Maximum  = 1;
            vert.Scroll  += new ScrollEventHandler(scroll);
            Controls.Add(vert);

            strList = new string[] { "Edit", "Delete" };

            border = Border3DStyle.Etched;
            bStyle = BorderStyle.None;

            properties = new StrPropertyList();

            StrProperty.Update += new NoArgsDelegate(Refresh);
//			allowedChars = new Hashtable();
//			allowedChars[Keys.Space]=' ';
        }