public KundList() { k_kundList = new List <Kund>(); try { if (File.Exists("KundLista.DAT")) { k_kundList = BinarySerialization <List <Kund> > .BinaryDeSerialize("KundLista.DAT"); } } catch (Exception ex) { throw new CustomException(ex.Message); } }
public CustomerList() { customers = new List <Customer>(); try { if (File.Exists("MemberLista.DAT")) { customers = BinarySerialization <List <Customer> > .BinaryDeSerialize("MemberLista.DAT"); } } catch (Exception) { throw; } }
public DykarkursList() { d_dykarkursList = new List <Dykarkurs>(); try { if (File.Exists("DykarkursLista.DAT")) { d_dykarkursList = BinarySerialization <List <Dykarkurs> > .BinaryDeSerialize("DykarkursLista.DAT"); } } catch (Exception ex) { throw new CustomException(ex.Message); } }
public BokningsList() { b_bokningsList = new List <Dykarkurs_boka>(); try { if (File.Exists("BokingsLista.DAT")) { b_bokningsList = BinarySerialization <List <Dykarkurs_boka> > .BinaryDeSerialize("BokingsLista.DAT"); } } catch (Exception ex) { throw new CustomException(ex.Message); } }
public CabinList() { cabins = new List <Cabin>(); try { if (File.Exists("CabinLista.DAT")) { cabins = BinarySerialization <List <Cabin> > .BinaryDeSerialize("CabinLista.DAT"); } else { this.BinarySerialize(); } } catch (Exception) { throw; } }
public BookingList() { bookings = new List <Booking>(); try { if (File.Exists("BookingLista.DAT")) { bookings = BinarySerialization <List <Booking> > .BinaryDeSerialize("BookingLista.DAT"); } else { this.BinarySerialize(); } } catch (Exception) { throw; } }
public PriceList() { prices = new List <Prices>(); try { if (File.Exists("PriceLista.DAT")) { prices = BinarySerialization <List <Prices> > .BinaryDeSerialize("PriceLista.DAT"); } else { this.BinarySerialize(); } } catch (Exception) { throw; } }