Esempio n. 1
0
 public bool Save(string filepath)
 {
     using (StreamWriter sw = new StreamWriter(filepath, false, Encoding.UTF8))
     {
         foreach (Driver driver in drivers)
         {
             sw.WriteLine("ФИО: " + driver.fio);
             sw.WriteLine("Лицензия: " + EnumUtils.LicenseTypeToString(driver.licenseType));
             sw.WriteLine("Модель: " + driver.model);
             sw.WriteLine("Тип авто: " + EnumUtils.AutoTypeToString(driver.autoType));
             sw.WriteLine("Номер: " + driver.number);
             sw.WriteLine("Год: " + driver.year);
         }
     }
     return(true);
 }