public static DataDAO getDataDAO() { if (dataDAO == null) { dataDAO = new DataDAO(); } return(dataDAO); }
public void TerminPrebacenNaMapu(Termin termin) { foreach (Termin t in DataDAO.getDataDAO().Termini) { if (t.Id == termin.Id) { t.X = termin.X; t.Y = termin.Y; break; } } DataDAO.getDataDAO().writeTerminToFile <Termin>(DataDAO.getDataDAO().Termini); }