public AgregarProducto() { InitializeComponent(); /*this.WindowState = FormWindowState.Maximized; * this.dataGridView2.SetBounds(dataGridView2.Bounds.X,dataGridView2.Bounds.Y+10, this.Bounds.Width,this.Bounds.Height-10); * this.panel1.SetBounds(dataGridView2.Bounds.X, dataGridView2.Bounds.Y, this.Bounds.Width+15, this.Bounds.Height+50); * this.panel2.Location = new Point(panel1.Width+10,panel1.Location.Y); * this.textBox4.Location = new Point(this.panel1.Location.X + 50, this.panel1.Height - 30 ); * this.label5.Location = new Point(this.panel1.Location.X, this.panel1.Height - 30);*/ tp = StaticsFunctions.tomarProds(); tum = StaticsFunctions.tomarUnidadMedidas(); var list = new BindingList <GVProducto>(mandarProductosGV(tp.productos)); dataGridView2.DataSource = list; this.CenterToScreen(); textBox5.AutoCompleteMode = AutoCompleteMode.Suggest; textBox5.AutoCompleteSource = AutoCompleteSource.CustomSource; AutoCompleteStringCollection col = new AutoCompleteStringCollection(); col.Add("12171500"); col.Add("53131600"); col.Add("52141700"); textBox5.AutoCompleteCustomSource = col; agregarUnidadesMedida(); agregarProveedores(); /*DataGridViewColumn column = dataGridView2.Columns[0]; * column.Width = 160;*/ }
public AgregarServicio() { InitializeComponent(); this.CenterToScreen(); tum = StaticsFunctions.tomarUnidadMedidas(); agregarUnidadesMedida(); reiniciarGridView(); comboBox1.SelectedIndex = 2; }