public void FilterUsers() { string name = SelectedName.ToUpper(); List <User> tempUsers = _listUsers.FindAll(u => u.Nom == name); _listUsers.Clear(); _listUsers.AddRange(tempUsers); Users.Refresh(); }
public virtual Name GetName() { if (parts.Count == 1) { var obj = ObjectSearcher.SearchIdentifier <INamedEntity>(currentScore, (parts[0] as Part.SelectedPart).Suffix, x => true); return(new SimpleName(obj)); } else if (parts.Count > 1) { var objs = ObjectSearcher.SearchComponents <INamedEntity>(currentScore, parts); Name suffix = new SimpleName(objs[objs.Count - 1]); for (int i = objs.Count - 2; i >= 0; --i) { Name prefix = new SimpleName(objs[i]); suffix = new SelectedName(prefix, suffix); } return(suffix); } throw new VHDL.ParseError.vhdlUnknownIdentifierException(context, visitor.FileName, Identifier); }
public static string GetRecordOperand(SelectedName expression, VHDLCompilerInterface compiler, bool GenerateGetOperandFunction = true) { Name prefix = expression.Prefix; if (prefix.Referenced is VHDL.Object.VhdlObject) { string valueProviderName = compiler.ObjectDictionary[prefix.Referenced as VHDL.Object.VhdlObject]; if (string.IsNullOrEmpty(valueProviderName)) { return(expression.Element); } else { if (GenerateGetOperandFunction) { valueProviderName = GetValueFunctionCall(valueProviderName); } return(valueProviderName); } } throw new NotImplementedException(); }
//确定按钮执行方法 private void button1_Click(object sender, EventArgs e) { //填入必填项 if (comboBox1.Text == "" || comboBox2.Text == "" || comboBox3.Text == "" || comboBox5.Text == "") { MessageBox.Show("必选项不得为空", "提示"); return; } //添加曲线进曲线名字列表 SelectedName.Add(comboBox1.Text + "-" + comboBox2.Text + "-" + comboBox3.Text + "-" + comboBox4.Text); //屏蔽选择 comboBox1.Enabled = false; //设置曲线标题 chart1.Series[0].LegendText = comboBox1.Text + "-" + comboBox2.Text + "-" + comboBox3.Text + "-" + comboBox4.Text; //设置网格线为透明 chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = Color.Transparent; //透明 //查询Table语句 string TableSelect = string.Format("Name='{0}' and LeftRight='{1}' and UpDown='{2}'", comboBox2.Text, comboBox3.Text, comboBox4.Text); if (comboBox4.Text == "") { TableSelect = string.Format("Name='{0}' and LeftRight='{1}'", comboBox2.Text, comboBox3.Text); } //把筛选行的数组挑出来 DataRow[] registerNum = referDataTable.Select(TableSelect); //显示查出来的对应寄存器 // MessageBox.Show(registerNum[0][4].ToString()); //用对应寄存器的编号去找对应的记录表,到处datatable DataTable ResultTable = QueryRecordFromSql(Convert.ToInt16(registerNum[0][0])); selectIndex = Convert.ToInt16(registerNum[0][0]); //新建第一条折线 Series series = chart1.Series[0]; seriesArray.Add(series); SelectedIDArray.Add(selectIndex); //数据库查询表 DataTable lineTable = SqlHelper.ExecuteDataTable("select * from DeadlineTable"); DataRow[] lineResult = lineTable.Select(string.Format("id='{0}'", selectIndex)); string downlineVal = lineResult[0][1].ToString(); string uplineVal = lineResult[0][2].ToString(); bigDownLine = downlineVal; bigUpLine = uplineVal; //表格初始化 //画出上下限的线 ChartInit(downlineVal, uplineVal); //根据选择的时间间隔设定定时器频率 timer1.Interval = Convert.ToInt16(comboBox5.Text) * 1000; //启动定时器 timer1.Enabled = true; timer1.Start(); //按钮变灰 button1.Enabled = false; button4.Enabled = true; comboBox5.Enabled = false; }
public override void visit(SelectedName name) { inferer.AnalyzeType(name.Type); }
public virtual void visit(SelectedName name) { }
public void visit(SelectedName name) { output.writeExpression(name.Prefix); writer.Append('.'); writer.Append(name.Element); }