Ejemplo n.º 1
0
        public void UpdateRow(DayInfoRow row)
        {
            string  prefix = row.Month + row.Day;
            string  start  = row.Start.Replace(":", "");
            string  end    = row.End.Replace(":", "");
            DayInfo d      = new DayInfo(prefix + ";" + start + ";" + end + ";" + row.Comment);

            if (d.GetDateToString().Equals(today.GetDateToString()))
            {
                today.SetComment(d.GetComment());
                today.setFirstActivity(d.GetFormattedFirstActivity());
                Tick();
                PersistData();
            }
            else
            {
                io.WriteToFile(d.getSubDirectory(), d.getFilename(), d.ToCSV());
            }
        }
Ejemplo n.º 2
0
        public void DeleteDay(DayInfoRow dayInfoRow)
        {
            DayInfo day = new DayInfo(dayInfoRow.Month + dayInfoRow.Day + ";;;");

            io.DeleteFile(day.getSubDirectory(), day.getFilename());
        }