Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     GUI.Recepcion.TelasControl telasgui = new TelasControl();
     telasgui.ShowDialog();
     DAO.TelasDAO telasdao1 = new GrupoSM_Recepcion.DAO.TelasDAO();
     //dataGridView1.DataSource = telasdao1.tablatelascosteo();
 }
Example #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         GUI.Recepcion.TelasControl telasgui = new TelasControl();
         telasgui.textBox1.Text = Convert.ToString(dataGridView1.CurrentRow.Cells["nombre"].Value);
         telasgui.textBox2.Text = Convert.ToString(dataGridView1.CurrentRow.Cells["precio"].Value);
         telasgui.label3.Text   = Convert.ToString(dataGridView1.CurrentRow.Cells["idtelas"].Value);
         telasgui.Text          = "Modificar";
         telasgui.ShowDialog();
         DAO.TelasDAO telasdao = new GrupoSM_Recepcion.DAO.TelasDAO();
         // dataGridView1.DataSource = telasdao.tablatelascosteo();
     }
     catch
     {
         MessageBox.Show("Elija una tela para modificar");
     }
 }