private void btn_excluirGarcom_Click_1(object sender, EventArgs e) { string cpfGarcom = txt_cpf_exclusao.Text; GarcomController garcomController = new GarcomController(); Garcom garcom = new Garcom(cpfGarcom, ""); garcomController.deletaGarcom(garcom.Cpf_garcom); this.Close(); }
private void Btn_incluiGarcom_Click(object sender, EventArgs e) { string nomeGarcom = txt_garcomNome.Text; string cpfGarcom = txt_garcomCpf.Text; Garcom garcom = new Garcom(cpfGarcom, nomeGarcom); GarcomController garcomController = new GarcomController(); garcomController.insereGarcom(garcom); this.Close(); }
private void btn_buscar_Click(object sender, EventArgs e) { string cpfGarcom = txt_garcom_cpf.Text; GarcomController garcomController = new GarcomController(); Garcom garcom = new Garcom(cpfGarcom, ""); garcom = garcomController.consultaGarcom(cpfGarcom); lbl_nome_garcom_info.Text = garcom.Nome; }
private void txt_cpf_exclusao_Leave(object sender, EventArgs e) { string cpfGarcom = txt_cpf_exclusao.Text; GarcomController garcomController = new GarcomController(); Garcom garcom = new Garcom(cpfGarcom, ""); garcom = garcomController.consultaGarcom(cpfGarcom); lbl_nome_garcom_info.Text = garcom.Nome; lbl_cpf_do_garcom_info.Text = garcom.Cpf_garcom; }
private void Btn_buscaGarcom_Click(object sender, EventArgs e) { string cpfGarcom = txt_garcom_cpf.Text; GarcomController garcomController = new GarcomController(); Garcom garcom = new Garcom(cpfGarcom, ""); garcom = garcomController.consultaGarcom(cpfGarcom); lbl_nome_garcom_info.Text = garcom.Nome; lbl_cpf_do_garcom_info.Text = garcom.Cpf_garcom; /*this.Close();*/ }
private void Btn_editarGarcom_Click(object sender, EventArgs e) { string cpfGarcom = txt_garcom_cpf.Text; string nomeGarcomNovo = txt_garcom_novo_nome.Text; GarcomController garcomController = new GarcomController(); Garcom garcomNovo = new Garcom(cpfGarcom, nomeGarcomNovo); garcomController.alteraGarcom(garcomNovo, garcomNovo.Cpf_garcom); this.Close(); }