예제 #1
0
 public static DataDAO getDataDAO()
 {
     if (dataDAO == null)
     {
         dataDAO = new DataDAO();
     }
     return(dataDAO);
 }
예제 #2
0
        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);
        }