private void BT_Edit_Click(object sender, EventArgs e) { //Edit_Action frm = new Edit_Action(gv.GetSelectedRows()[0]); Edit_IOMess frm = new Edit_IOMess(gv.GetSelectedRows()[0] - 1); frm.ShowDialog(); Frm_Modbus_Load(this, null); }
private void gv_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { //if (gv.GetFocusedRowCellDisplayText()) //{ //} Edit_IOMess frm = new Edit_IOMess(gv.GetSelectedRows()[0] - 1,CB_RobotIndex.SelectedIndex); frm.ShowDialog(); // Frm_Modbus_Load(this, null); CB_RobotCount_SelectedIndexChanged(this,null); }
private void gv_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { //if (gv.GetFocusedRowCellDisplayText()) //{ //} Edit_IOMess frm = new Edit_IOMess(gv.GetSelectedRows()[0] - 1, CB_RobotIndex.SelectedIndex); frm.ShowDialog(); // Frm_Modbus_Load(this, null); CB_RobotCount_SelectedIndexChanged(this, null); }