예제 #1
0
        private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var univReader = new UniversalBibReader();
            var readers    = GetStreamReaders();

            if (readers != null)
            {
                libItems.Clear();
                deletedLibItems.Clear();
                libItems.AddRange(univReader.Read(readers));
                LoadFilters();
                var time = DateTime.Now;
                log.Write($"{ time.ToString() }");
                log.Write($"> Open file");
                finder = new Finder.Finder();
                LoadLibItems();
                log.Write($"> Add new LibItem(s): count = { lvLibItems.Items.Count }");
                log.Write($"{ (DateTime.Now - time).TotalSeconds.ToString() } sec.");
                log.Write("____________________");

                toolStripStatusLabel1.Text        = "Last opened file name: " + lastOpenedFileName;
                labelFindedItemsCount.Text        = string.Empty;
                btFirst.Enabled                   = false;
                btUnique.Enabled                  = true;
                btRelevance.Enabled               = false;
                добавитьToolStripMenuItem.Enabled = true;
                UpdateUI();
            }
        }
예제 #2
0
 private void cbSearchCriterion_SelectedIndexChanged(object sender, EventArgs e) => finder = new Finder.Finder();