private void PackageLasts_SelectedIndexChanged(object sender, EventArgs e) { CountPackFile.Visible = true; var select = (StructExelModel)PackageLasts.SelectedItem; var res = ExelCreator.ListPackageFiles(select.AbsolutPatch); CountPackFile.Text = $"Всего в пакете {res.Count} файлов."; }
private void PackFromList_SelectedIndexChanged(object sender, EventArgs e) { var select = (StructExelModel)PackFromList.SelectedItem; var result = fromPack.GetRangePack( select.Name.PacNameConvert(), fromPack.Max(x => x.DateIndex)); var cou = result.Sum(exelModel => ExelCreator.ListPackageFiles(exelModel.AbsolutPatch).Count); PackToList.DataSource = result; if (ChRangPack.Checked) { CountPackFile.Text = $"Всего в пакете {cou} файлов."; } }