Esempio n. 1
0
 public TurnosVisualizar(DateTime fecha, ProfesionalCls prof, ClienteCls cli)
 {
     this.fecha           = fecha;
     this.profecional     = prof._nombre;
     this.cliente         = cli._nombre;
     this.clientaApellido = cli._apellido;
 }
Esempio n. 2
0
        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            dni  = Convert.ToInt16(textDni.Text);
            var            name = textNombre.Text;
            var            ape  = textApellido.Text;
            ProfesionalCls pro  = new ProfesionalCls(dni, name, ape);

            general.addProfecionales(pro);
            MessageBox.Show("El profecional fue creado");
            limpiar();
        }
Esempio n. 4
0
 public void addProfecionales(ProfesionalCls profecional)
 {
     profesionales.Add(profecional);
 }
Esempio n. 5
0
 public TurnoCls(DateTime fecha, ProfesionalCls profecional, ClienteCls cliente)
 {
     this._fecha       = fecha;
     this._profesional = profecional;
     this._cliente     = cliente;
 }