예제 #1
0
 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);
     }
 }
예제 #2
0
 public CustomerList()
 {
     customers = new List <Customer>();
     try
     {
         if (File.Exists("MemberLista.DAT"))
         {
             customers = BinarySerialization <List <Customer> > .BinaryDeSerialize("MemberLista.DAT");
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
 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);
     }
 }
예제 #5
0
 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;
     }
 }
예제 #6
0
 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;
     }
 }
예제 #7
0
 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;
     }
 }