コード例 #1
0
        private void reset()
        {
            this.acao = Controllers.Acao.inclui;

            txtPreco.Text = string.Empty;

            this.btnSalvar.Text = "Inclui";

            this.btnCancelar.Enabled = false;
        }
コード例 #2
0
        private void dgvPrecos_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                txtPreco.Text = string.Format("{0:0.00}", dgvPrecos[2, e.RowIndex].Value);
                this.acao     = Controllers.Acao.altera;

                this.btnSalvar.Text = "Altera";

                this.btnCancelar.Enabled = true;
            }
        }