private void AddAllPkgFlagsRow() { if (CancelRequest == true) { return; } string XmlDt = File.ReadAllText(MetaPkgXmlFs); DtGridPkgFlag.Rows.Clear(); foreach (Dictionary <string, string> Repos in AllRepo) { if (CancelRequest == true) { break; } if (backgroundWorkerAddFs.CancellationPending == true) { break; } if (Repos.ContainsKey("ItemInfo") == true) { this.DtGridPkgFlag.Rows.Add(AddAPkgFlagsRow(Repos["ItemInfo"], XmlDt)); } } }