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; }
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; }
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; } }
public void definirEnableButtons(ButtonsEnable buttonsEnable) { ControleDeReferencia.ReferenciaFormularioPrincipal.btnExcluir.Enabled = buttonsEnable.btnExcluir; ControleDeReferencia.ReferenciaFormularioPrincipal.btnEditar.Enabled = buttonsEnable.btnEditar; }
public TesteGerenciadorFormulario() { _buttonsEnable = new ButtonsEnable(); }