private void btn_salvar_Click(object sender, EventArgs e) { // ADD cliente ConnectionSQLite.alterar(getCliente_tela()); limpa_text(); desabilita_btn(); }
private void BuscaCliente(string nome) { Cliente cli = new Cliente(); try { if (nome == string.Empty) { throw new Exception("Por favor Informe um nome"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } cli = ConnectionSQLite.getCliente(nome); text_nome.Text = cli.nome; mask_txt_cpf.Text = cli.cpf; date_atendi.Text = cli.data; mask_txt_tel.Text = cli.telefone; mask_txt_cell.Text = cli.celular; mask_txt_hora.Text = cli.hora; text_email.Text = cli.email; text_end.Text = cli.endereco; text_numero.Text = cli.end_numero; text_bairro.Text = cli.end_bairro; }
private void btn_buscar_Click(object sender, EventArgs e) { dataGrid_Agend.DataSource = ConnectionSQLite.Buscar_Agendamento(dateTime_Agend.Text); }
private void btn_deletar_Click(object sender, EventArgs e) { ConnectionSQLite.delete(mask_txt_cpf.Text); limpa_text(); }