private void fStores_Load(object sender, EventArgs e) { DirectoryInfo directory = new DirectoryInfo(Utils.GetStoresPath()); QRAdapter qrAdapter = new QRAdapter(); var files = directory.GetFiles("*.png"); Logger.Add(new FileLog()); Logger.Log("DeliveryApp Started!"); StoreList.Init(); foreach (var image in files) { StoreList.Add(qrAdapter.ReadQR(image.Name)); } dgvStores.DataSource = StoreList.GetStores().Select(o => new { Id = o.idStore, Name = o.storeName }).ToList(); dgvStores.Columns["Name"].Width = 220; }