예제 #1
0
 public void DefinirEnableButtons(ButtonsEnable buttonsEnable)
 {
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnGerarGabarito.Enabled = buttonsEnable.btnGerarGabarito;
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnExportarTeste.Enabled = buttonsEnable.btnExportar;
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnAdicionar.Enabled     = buttonsEnable.btnAdicionar;
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnEditar.Enabled        = buttonsEnable.btnEditar;
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnExcluir.Enabled       = buttonsEnable.btnExcluir;
 }
예제 #2
0
 private void definirPropriedadeEnableDosBotoes(ButtonsEnable buttonsEnable)
 {
     btnAdicionar.Enabled     = buttonsEnable.btnAdicionar;
     btnEditar.Enabled        = buttonsEnable.btnEditar;
     btnExcluir.Enabled       = buttonsEnable.btnExcluir;
     btnGerarGabarito.Enabled = buttonsEnable.btnGerarGabarito;
     btnExportarTeste.Enabled = buttonsEnable.btnExportar;
 }
예제 #3
0
        private void StatusButtonCancel(bool flag, ButtonsEnable but)
        {
            switch (but)
            {
            case ButtonsEnable.Cancel:
                CancelButton.Enabled = flag;
                break;

            case ButtonsEnable.AddKards:
                KardsAdd.Enabled = flag;
                break;

            case ButtonsEnable.Zabraat:
                Zabrat.Enabled = flag;
                break;

            case ButtonsEnable.Otboy:
                Otboy.Enabled = flag;
                break;
            }
        }
예제 #4
0
 public void definirEnableButtons(ButtonsEnable buttonsEnable)
 {
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnExcluir.Enabled = buttonsEnable.btnExcluir;
     ControleDeReferencia.ReferenciaFormularioPrincipal.btnEditar.Enabled  = buttonsEnable.btnEditar;
 }
예제 #5
0
 public TesteGerenciadorFormulario()
 {
     _buttonsEnable = new ButtonsEnable();
 }