//-------------------------------------------------------------------------- // Opens the Flow Segment Details form for the specified ID //-------------------------------------------------------------------------- public void OpenForm_FlowSegmentDetails(int ID) { SWFlowSegmentDetails detailform = new SWFlowSegmentDetails(ID, _cwdata._connectionstring, true); detailform.ShowDialog(); detailform.Dispose(); }
//----------------------------------------------------------------------------------- // User double clicked Grid //----------------------------------------------------------------------------------- private void gridFlowSegments_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (_allow_open_flow_segments) { if (e.RowIndex >= 0) { int zoneid = Convert.ToInt32(gridFlowSegments.Rows[e.RowIndex].Cells[gridFlowSegments.Columns["Zone ID"].Index].Value.ToString()); if (zoneid > 0) { SWFlowSegmentDetails detailform = new SWFlowSegmentDetails(zoneid, _connectionstring, false); detailform.ShowDialog(); detailform.Dispose(); } } } }