private void gridControl1_DoubleClick(object sender, EventArgs e) { int selectedHandle; selectedHandle = this.gridView1.GetSelectedRows()[0]; if (selectedHandle >= 0) { string devid = this.gridView1.GetRowCellValue(selectedHandle, "devid").ToString(); if (multiplesettingList != null) { JC_MultiplesettingInfo editMultiplesetting = multiplesettingList.Find(a => a.Devid == devid); if (editMultiplesetting != null) { MultipleSettingEdit multipleSettingEdit = new MultipleSettingEdit(editMultiplesetting, deviceInfos, this); multipleSettingEdit.ShowDialog(); } } } }
/// <summary> /// 添加倍数关系 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { MultipleSettingEdit multipleSettingEdit = new MultipleSettingEdit(deviceInfos, this); multipleSettingEdit.ShowDialog(); }