public EntityLine(EntitiesControl container) { this.Container = container; label_color = new Label(); label_color.Dock = DockStyle.Fill; label_color.Size = new Size(6, 23); label_color.Margin = new Padding(0, 0, 0, 0); //label_color.ImageList = this.Container.ImageListIcons; //label_color.ImageIndex = -1; #if NO splitter = new MySplitter(); // splitter.Dock = DockStyle.Fill; splitter.Size = new Size(8, 23); splitter.Width = 8; splitter.Margin = new Padding(0, 0, 0, 0); splitter.BackColor = Color.Transparent; #endif // barcode this.textBox_barcode = new TextBox(); textBox_barcode.BorderStyle = BorderStyle.None; textBox_barcode.Dock = DockStyle.Fill; textBox_barcode.MinimumSize = new Size(20, 21); // 23 textBox_barcode.Size = new Size(20, 21); // 23 textBox_barcode.Margin = new Padding(8, 4, 0, 0); // location this.comboBox_location = new ComboBox(); comboBox_location.DropDownStyle = ComboBoxStyle.DropDown; comboBox_location.FlatStyle = FlatStyle.Flat; comboBox_location.Dock = DockStyle.Fill; comboBox_location.MaximumSize = new Size(150, 28); comboBox_location.Size = new Size(100, 28); comboBox_location.MinimumSize = new Size(50, 28); comboBox_location.DropDownHeight = 300; comboBox_location.DropDownWidth = 300; comboBox_location.ForeColor = this.Container.TableLayoutPanel.ForeColor; comboBox_location.Text = ""; comboBox_location.Margin = new Padding(6, 6, 6, 0); // bookType this.comboBox_bookType = new ComboBox(); comboBox_bookType.DropDownStyle = ComboBoxStyle.DropDown; comboBox_bookType.FlatStyle = FlatStyle.Flat; comboBox_bookType.Dock = DockStyle.Fill; comboBox_bookType.MaximumSize = new Size(150, 28); comboBox_bookType.Size = new Size(100, 28); comboBox_bookType.MinimumSize = new Size(50, 28); comboBox_bookType.DropDownHeight = 300; comboBox_bookType.DropDownWidth = 300; comboBox_bookType.ForeColor = this.Container.TableLayoutPanel.ForeColor; comboBox_bookType.Text = ""; comboBox_bookType.Margin = new Padding(6, 6, 6, 0); // accessNo this.textBox_accessNo = new TextBox(); textBox_accessNo.BorderStyle = BorderStyle.None; textBox_accessNo.Dock = DockStyle.Fill; textBox_accessNo.MinimumSize = new Size(20, 21); // 23 textBox_accessNo.Size = new Size(20, 21); // 23 textBox_accessNo.Margin = new Padding(8, 4, 0, 0); // price this.textBox_price = new TextBox(); textBox_price.BorderStyle = BorderStyle.None; textBox_price.Dock = DockStyle.Fill; textBox_price.MinimumSize = new Size(20, 21); // 23 textBox_price.Size = new Size(20, 21); // 23 textBox_price.Margin = new Padding(8, 4, 0, 0); // refID label_refID = new Label(); label_refID.Dock = DockStyle.Fill; label_refID.Size = new Size(6, 23); label_refID.AutoSize = true; label_refID.Margin = new Padding(4, 2, 4, 0); // label_caption.BackColor = SystemColors.Control; // batchNo this.label_batchNo = new Label(); label_batchNo.Dock = DockStyle.Fill; label_batchNo.Size = new Size(6, 23); label_batchNo.AutoSize = true; label_batchNo.Margin = new Padding(4, 2, 4, 0); // label_caption.BackColor = SystemColors.Control; }