Пример #1
0
 public string convertTaskDetailToWriteIntoFile(TaskDetails objectDetailsOfTask)
 {
     try
     {
         return(objectDetailsOfTask.getEventname() + ";" + objectDetailsOfTask.getLocation() + ";"
                + objectDetailsOfTask.getStartDate() + ";" + objectDetailsOfTask.getEndDate() + ";" +
                objectDetailsOfTask.getStartTime() + ";" + objectDetailsOfTask.getEndTime() + ";" +
                objectDetailsOfTask.getDuration() + ";" + objectDetailsOfTask.getPriority() + ";" +
                objectDetailsOfTask.getRemainderTime() + ";" + objectDetailsOfTask.getRepeat());
     }
     catch (Exception e)
     {
         StreamWriter loggingWriter = new StreamWriter("Logging.txt");
         loggingWriter.WriteLine(System.DateTime.Now + e.Message + "\n");
         loggingWriter.Close();
         return(null);
     }
 }