public TurnosVisualizar(DateTime fecha, ProfesionalCls prof, ClienteCls cli) { this.fecha = fecha; this.profecional = prof._nombre; this.cliente = cli._nombre; this.clientaApellido = cli._apellido; }
private void BtnCrear_Click(object sender, EventArgs e) { ClienteCls cli = (ClienteCls)comboClientes.SelectedValue; ProfesionalCls prof = (ProfesionalCls)comboProfecionales.SelectedValue; DateTime fecha = dateTimePicker1.Value; TurnoCls turno = new TurnoCls(fecha, prof, cli); general.addTurno(turno); mostrarTurnos(); }
private void button1_Click(object sender, EventArgs e) { int leg = Convert.ToInt16(textLegajo.Text); string name = textNombre.Text; string ape = textApellido.Text; ClienteCls cli = new ClienteCls(leg, name, ape); general.addCliente(cli); MessageBox.Show("Elcliente fue creado"); limpiar(); }
public void addCliente(ClienteCls cli) { clientes.Add(cli); }
public TurnoCls(DateTime fecha, ProfesionalCls profecional, ClienteCls cliente) { this._fecha = fecha; this._profesional = profecional; this._cliente = cliente; }