Example #1
0
 private void btnSalvar_Click(object sender, EventArgs e)
 {
     _dia.Intervalo  = Dia.CalculoIntervalor(_dia.HoraDois, _dia.HoraTres);
     _dia.TotalHoras = Dia.CalculoTotalHora(_dia.HoraUm, _dia.HoraQuatro, _dia.Intervalo);
     _entityFactory.Dias.Add(_dia);
     _entityFactory.SaveChanges();
     this.Close();
 }