public OrderRepos()
 {
     if (_orderList == null)
     {
         try
         {
             _orderList = FileAdapter.ReadFromXml <List <OrderDetails> >(_path);
         }
         catch
         {
             _orderList = new List <OrderDetails>();
             Save();
         }
     }
 }
 public CustomerRepository()
 {
     // Initialize();
     if (_customerList == null)
     {
         try
         {
             _customerList = FileAdapter.ReadFromXml <List <Customer> >(_path);
         }
         catch
         {
             _customerList = new List <Customer>();
             Save();
         }
     }
 }
        public StoreRepos()
        {
            if (_storeList == null)
            {
                try
                {
                    _storeList = FileAdapter.ReadFromXml <List <StoreDetails> >(_path);
                }
                catch
                {
                    _storeList = new List <StoreDetails>();


                    Save();
                }
            }
        }