Example #1
0
        private void btnCadArtigos_Click(object sender, EventArgs e)
        {
            NovosArtigoscs novosArtigos = new NovosArtigoscs();

            novosArtigos.Show();
            this.Hide();
        }
Example #2
0
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            //Recuperar a linha selecionadas.
            ArtigoSelect = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            //id = Convert.ToInt16(dataGridView1.Rows[e.RowIndex].Cells[3].Value);
            //Fechar a tela
            Hide();
            NovosArtigoscs n = new NovosArtigoscs();

            n.carregaDados(Convert.ToInt16(dataGridView1.Rows[e.RowIndex].Cells[0].Value), dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(), dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString());
            n.somenteVisualizacao();
            n.cont++;
            n.Show();
        }