Ejemplo n.º 1
0
        // --------------------------------------------------------------------

        private void TsmIncluirLocal_Click(object sender, EventArgs e)
        {
            DgvCategorias.Enabled = false;
            DgvLogins.Enabled     = false;
            FlpDadosLocal.Enabled = true;
            HabilitarMenus(false);
            UcCategoria.DefinirFonte(_categoria.PreencherComboBox());

            _modo = 1;
        }
Ejemplo n.º 2
0
        private void TsmModificarLocal_Click(object sender, EventArgs e)
        {
            UcCategoria.DefinirFonte(_categoria.PreencherComboBox());
            _codigoLocal      = Convert.ToInt64(DgvLocais.CurrentRow.Cells[0].Value.ToString());
            TxtNomeLocal.Text = DgvLocais.CurrentRow.Cells[1].Value.ToString().Trim();
            UcCategoria.DefinirCategoria(DgvLocais.CurrentRow.Cells[2].Value.ToString());

            DgvCategorias.Enabled = false;
            DgvLocais.Enabled     = false;
            DgvLogins.Enabled     = false;
            FlpDadosLocal.Enabled = true;

            this.HabilitarMenus(false);

            _modo = 2;
        }
Ejemplo n.º 3
0
        private void TcPrincipal_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.HabilitarMenus(true);
            this.HabilitarAdicaoLogin(false);
            LimparCampos();

            this.FlpDadosLogins.Enabled    = false;
            this.FlpDadosLocal.Enabled     = false;
            this.FlpDadosCategoria.Enabled = false;

            this.DgvLogins.Enabled     = true;
            this.DgvLocais.Enabled     = true;
            this.DgvCategorias.Enabled = true;

            UcCategoria.DefinirFonte(_categoria.PreencherComboBox());
        }