I have a form
base that will be form
'Father', with 3 buttons in it.
Add, Delete, and Change.
I'm going to use formbase
to standardize my registration screens, so each registration screen when I click 'Record' will execute a different recording routine.
Then I have the following:
class frmCadastroFuncionario: Views.formulariobase
{
//herdando os botoes e o evento 'onclick'
}
Class formulariobase
{
public void Altera(string nome)
{
if (this.Form.Name.ToString() == "FuncionarioCadastro")
//faça isso
}
}
So when I call the change function, I have to see what I'm going to execute inside the if
because it depends on the form
that I call the change function will make it be different. But this% w% I did not work. So I wanted to know if using inheritance has to know that if
is using the visual and event inheritance of form
.