예제 #1
0
        public void LogOpenForPrinting(string title)
        {
            var dbcontext = new Model_PDFFinder();

            dbcontext.Statisticas.Where(x => x.group_name == title.Substring(0, 5)).First().processed_files_count++;

            dbcontext.SaveChanges();
        }
예제 #2
0
        public void LogOpenForView()
        {
            var dbcontext = new Model_PDFFinder();

            dbcontext.Statisticas.Where(x => x.group_name == "NoGroup").First().processed_files_count++;

            dbcontext.SaveChanges();

            App.Current.Shutdown();
        }