1
I need to make an agenda to register:
- The information on scheduling
- Register multiple instruments at once with scheduling information
The button Buscar cliente
pulls the data(Client ID and Name) from a customer registration table, as well as the button buscar instrumento
that just pulls the field Codigo
instrument of an instrument table.
Under the button buscar instrumentos
has a dgv
, in that dgv
I wanted to put all the instruments that would be rented on a schedule, and then when clicked the button agendar
, a record in both dgvs
to the side would be made, the dgv
SCHEDULING would have all SCHEDULING INFORMATION, and the dgv
RENTED INSTRUMENTS would have the ID_Agendamento
dgv SCHEDULES and would also have all the fields that are inside the groupbox INSTRUMENTS TO RENT, remembering that the insert button inserts the instruments in the dgv
do group box INSTRUMENTS RENT and delete button excludes the inserted instruments because the administrator inserted some wrong instrument.
Form code-----
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UIWINDOWS.bdtccTableAdapters;
namespace UIWINDOWS
{
public partial class FrmAgenda3 : Form
{
public FrmAgenda3()
{
InitializeComponent();
}
private void FrmAgenda3_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'etecbd.Alugados' table. You can move, or remove it, as needed.
this.alugadosTableAdapter2.Fill(this.etecbd.Alugados);
// TODO: This line of code loads data into the 'etecbd.Agenda' table. You can move, or remove it, as needed.
this.agendaTableAdapter2.Fill(this.etecbd.Agenda);
}
private void button1_Click(object sender, EventArgs e)
{
FrmBuscarMusico obj = new FrmBuscarMusico();
obj.ShowDialog();
iD_ClIENTETextBox.Text = obj.Codreto.ToString();
nomeTextBox.Text = obj.Nomeretor.ToString();
iD_ClIENTETextBox.Focus();
}
private void button2_Click(object sender, EventArgs e)
{
FrmBuscarInstrumento obj = new FrmBuscarInstrumento();
obj.ShowDialog();
codigo_instrumentoTextBox.Text = obj.Codret.ToString();
codigo_instrumentoTextBox.Focus();
}
}
}
Welcome to the stackoverlow community. Make a tour and learn a little about the rules and good practices. Enter the code you have tried.
– Marco Giovanni
Enter your code, only with that description can not help you.
– Taisbevalle