//添加系统变量 private void lbsysvar_DoubleClick(object sender, EventArgs e) { fm.SetSysVar(this.dataGridViewEx1.CurrentCell.ColumnIndex, this.dataGridViewEx1.CurrentCell.RowIndex, this.lbsysvar.Text, this.lbsysvar.SelectedValue.ToString()); }