static void FillAppointmentsStorage(AppointmentCollection c, string fileName) { using (Stream stream = GetFileStream(fileName)) { c.ReadXml(stream); stream.Close(); } }
static void FillStorageCollection(AppointmentCollection c, string resourceName) { using (Stream stream = GetResourceStream(resourceName)) { c.ReadXml(stream); stream.Close(); } }
static void FillAppointmentsStorage(AppointmentCollection c, string fileName) { using (var _stream = GetFileStream(fileName)) c.ReadXml(_stream); }