Exemplo n.º 1
0
		//-------------------------------------------------------------------------------------
		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ClientBaseForm));
			this.PanelBack = new Sim.Controls.SimPanel();
			this.SuspendLayout();
			// 
			// PanelBack
			// 
			this.PanelBack.BackColor = System.Drawing.Color.Transparent;
			this.PanelBack.Dock = System.Windows.Forms.DockStyle.Fill;
			this.PanelBack.Location = new System.Drawing.Point(0, 0);
			this.PanelBack.Name = "PanelBack";
			this.PanelBack.Size = new System.Drawing.Size(871, 640);
			this.PanelBack.TabIndex = 0;
			// 
			// ClientBaseForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(871, 640);
			this.Controls.Add(this.PanelBack);
			this.DoubleBuffered = true;
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "ClientBaseForm";
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
			this.Text = "ClientBaseForm";
			this.ResumeLayout(false);

		}
Exemplo n.º 2
0
		//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		//-------------------------------------------------------------------------------------
		#region << Constructors >>
		/// <summary>
		/// Конструктор по умолчанию.
		/// </summary>
		protected SimSelectList()
			: base()
		{
			using (Graphics g = CreateGraphics())
				rowHeight = (int)g.MeasureString("уЙ", Font).Height + 1;

			searchTimer = new Timer();
			searchTimer.Interval = 950;
			searchTimer.Tick += new EventHandler(searchTimer_Tick);

			fdgv.ColumnHeadersVisible = false;
			fdgv.RowHeadersVisible = false;
			fdgv.CellBorderStyle = DataGridViewCellBorderStyle.None;
			fdgv.RowTemplate.Height = rowHeight;
			fdgv.MultiSelect = false;
			fdgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
			fdgv.BorderStyle = BorderStyle.None;
			fdgv.Dock = DockStyle.Fill;
			fdgv.EnterMovesDown = false;
			fdgv.CellClick += new DataGridViewCellEventHandler(fdgv_CellClick);
			fdgv.KeyUp += new KeyEventHandler(fdgv_KeyUp);
			fdgv.KeyPress += new KeyPressEventHandler(fdgv_KeyPress);
			fdgv.CellFormatting += new DataGridViewCellFormattingEventHandler(fdgv_CellFormatting);

			DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn();
			col.FillWeight = 100;
			col.Resizable = DataGridViewTriState.False;
			fdgv.Columns.Add(col);
			fdgv.AllowAutoGenerateColumns = false;
			SimPanel p = new SimPanel();
			p.Padding = new Padding(1);
			p.BackColor = SystemColors.Window;
			p.Controls.Add(fdgv);

			base.Padding = new Padding(0);
			base.Control = p;
		}