示例#1
0
        private void btn_cadastro_Click(object sender, EventArgs e)
        {
            this.Close();

            FrmFornecedores form = new FrmFornecedores();
            form.Show();
        }
示例#2
0
        private void dgv_Fornecedor_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            Global.FOR_CODIGO = int.Parse(dgv_Fornecedor.Rows[e.RowIndex].Cells[0].Value.ToString());
            this.Close();

            FrmFornecedores form = new FrmFornecedores();

            form.Show();
        }
示例#3
0
        private void dgv_Fornecedor_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > -1)
            {
                Global.FOR_CODIGO = int.Parse(dgv_Fornecedor.Rows[e.RowIndex].Cells[0].Value.ToString());
                this.Close();

                FrmFornecedores form = new FrmFornecedores();
                form.Show();
            }
            else
            {
                ORDER = e.ColumnIndex;
                Carregar_DGV();
            }
        }