transportList = JsonConvert.DeserializeObject<List<ITransport>>(jsonString);
transportList = new List<ITransport>();
BinaryFormatter formatter = new BinaryFormatter();
FileStream transportFile = new FileStream("transport.tdt", FileMode.OpenOrCreate);
if (transportFile.Length>0)
{
transportList = (List<ITransport>)formatter.Deserialize(transportFile);
}
transportFile.Close();
transportListBindingSource.DataSource = transportList;
BinaryFormatter formatter = new BinaryFormatter();
FileStream transporFileStream = new FileStream("transport.tdt", FileMode.OpenOrCreate);
formatter.Serialize(transporFileStream, transportList);
transporFileStream.Close();