/// <summary> /// 提交按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button1_Click(object sender, EventArgs e) { BLL.BllDataBase bll = new BLL.BllDataBase(); DataTable dt = this.dataGridView1.DataSource as DataTable; bll.Updatelanguage(dt, this.textBox1.Text.Trim()); }
private List <ServerInfo> GetData() { List <ServerInfo> data = new List <ServerInfo>(); BLL.BllDataBase bll = new BLL.BllDataBase(false); Dictionary <string, string> dic = bll.GetAccount(); ServerInfo info = null; foreach (KeyValuePair <string, string> item in dic) { info = new ServerInfo(); info.accountid = item.Key; info.accountname = item.Value; data.Add(info); } return(data); }
protected override void DoSetParam(string tag, params object[] param) { base.DoSetParam(tag, param); if (tag == "dalassembly") { BLL.BllDataBase bll = new BLL.BllDataBase(); List <FuncAssemblyInfo> result = bll.GetAssemblyinfos(); if (result != null) { DataTable dt = this.dataGridView1.DataSource as DataTable; DataTable data = LibSysUtils.ToDataTable(result); DataTableHelp dthelp = new DataTableHelp(data, dt); dthelp.CopyStable(); //DataRow row = null; //foreach (var item in result) //{ // row = dt.NewRow(); // row["FuncID"] = item.FuncID; // row [""] //} } } }