public IActionResult Index() { Alldata dt = new Alldata { Groups = Datab.GetGroups(), Professions = Datab.GetProfessions(), Students = Datab.GetStudents() }; return(View(dt)); }
public IActionResult Group(int id) { ViewBag.Idd = id; Alldata dt = new Alldata { Groups = Datab.GetGroups(), Professions = Datab.GetProfessions(), Students = Datab.GetStudents() }; return(View(dt)); }
public IActionResult Arsiv() { var site = _context.Site.ToList(); var foto = _context.Foto.ToList(); var sosyal = _context.Sosyal.ToList(); var Class = new Alldata(); Class.Foto = foto; Class.Site = site; Class.Sosyal = sosyal; return(View(Class)); }
public IActionResult Blog() { var site = _context.Site.ToList(); var blog = _context.Blog.ToList(); var sosyal = _context.Sosyal.ToList(); var Class = new Alldata(); Class.Site = site; Class.Blog = blog; Class.Sosyal = sosyal; return(View(Class)); }
public IActionResult Index() { var site = _context.Site.ToList(); var okul = _context.Okul.ToList(); var slider = _context.SliderFoto.ToList(); var sosyal = _context.Sosyal.ToList(); var Class = new Alldata(); Class.Site = site; Class.Okul = okul; Class.SliderFoto = slider; Class.Sosyal = sosyal; return(View(Class)); }
public void insetIntoListViewWithHTTPVAULE(String HTML) { if (CiteValue.getIsExist(HTML) == false){ this.dataGridView1.Rows.Clear(); String[] oneRow = new String[7]; oneRow[0] = ""; oneRow[1] = ""; oneRow[2] = "找不到资源"; oneRow[3] = "换一个再搜索试试吧 喵~~~"; oneRow[4] = ""; oneRow[5] = ""; oneRow[6] = ""; this.dataGridView1.Rows.Add(oneRow); MessageBox.Show(this, "没有找到相关搜索结果\r\n O_O"); return; } HTML = Reg_replace(HTML, "</?span[^>]*>", ""); // 去除原来的高亮等之类的特殊关键字 HTML = Reg_replace(HTML, "\\/\\*.*\\*\\/", ""); // 去除原始代码中的注释 HTML = Reg_replace(HTML, "<script[^>]*>[\\s\\S]*?</script>", ""); // 去除原始代码中的Script代码 HTML = Reg_replace(HTML, " <b>新</b>", ""); //Console.Write(HTML); // this.textBox1.Text = HTML; //return; String[] size = CiteValue.regGetSize(HTML);// 大小 String[] name = CiteValue.regGetName(HTML);// 名称 String[] location = CiteValue.regGetLocation(HTML);// 地址 String[] hot = CiteValue.regGetHot(HTML);// 热度 String[] time = CiteValue.regGetTime(HTML);// 创建时间 if (!(size.Length == name.Length && name.Length == location.Length && location.Length == hot.Length && hot.Length == time.Length)) { MessageBox.Show("数据获取异常,点击右下角\n反馈能帮助软件更加完善"); return; } Alldata.allcount = size.Length; for (int i = 0; i < size.Length; i++) { alldata[i] = new Alldata(); alldata[i].size = size[i]; alldata[i].name = name[i]; alldata[i].location = location[i]; alldata[i].hot = hot[i]; alldata[i].time = time[i]; } size = name = location = hot = time = null; // 获得当前页数,获得最大页数 try { this.CiteValue.curIndex = CiteValue.regGetCurIndex(HTML); } catch (Exception ee) { Console.WriteLine(ee); } try { this.CiteValue.maxIndex = CiteValue.regGetMaxIndex(HTML); } catch (Exception ee) { Console.WriteLine(ee); } //MessageBox.Show(this.CiteValue.curIndex + " "+ this.CiteValue.maxIndex); _syncContext.Post(Sync_ListView, new object()); //if (this.CiteValue.maxIndex < this.CiteValue.curIndex) this.CiteValue.maxIndex = this.CiteValue.curIndex; _syncContext.Post(SetComboxSize, new object()); //SetComboxSize(this.CiteValue.maxIndex, this.CiteValue.curIndex); }