Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            GUI.Bodega.TelasControl telasgui = new TelasControl();
            telasgui.button2.Visible  = false;
            telasgui.button1.Text     = "Modificar";
            telasgui.button4.Visible  = false;
            telasgui.button5.Visible  = false;
            telasgui.textBox1.Enabled = false;
            telasgui.textBox2.Enabled = false;
            telasgui.textBox3.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells["metros"].Value);
            telasgui.textBox4.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells["Nombre"].Value);
            telasgui.textBox5.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells["composicion"].Value);
            telasgui.textBox6.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells["color"].Value);
            telasgui.textBox7.Text    = Convert.ToString(dataGridView1.CurrentRow.Cells["ancho"].Value);
            if (Convert.ToInt32(dataGridView1.CurrentRow.Cells["tipo"].Value) > 2)
            {
            }
            else
            {
                telasgui.comboBox1.SelectedIndex = Convert.ToInt32(dataGridView1.CurrentRow.Cells["tipo"].Value);
            }

            telasgui.label10.Text  = Convert.ToString(dataGridView1.CurrentRow.Cells["ID"].Value);
            telasgui.textBox1.Text = Convert.ToString(dataGridView1.CurrentRow.Cells["Cliente"].Value);
            telasgui.textBox2.Text = Convert.ToString(dataGridView1.CurrentRow.Cells["Proveedor"].Value);
            telasgui.ShowDialog();
            actualizagrid();
        }
Пример #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     GUI.Bodega.TelasControl guitelas = new TelasControl();
     guitelas.ShowDialog();
     DAO.TelasDAO telasdao = new GrupoSM_Recepcion.DAO.TelasDAO();
     dataGridView1.DataSource = telasdao.tablatelas();
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     GUI.Bodega.TelasControl telasctrl = new TelasControl();
     telasctrl.label10.Text = dataGridView1.CurrentRow.Cells["id_orden"].Value.ToString();
     telasctrl.Show();
 }