コード例 #1
0
        //--------------------------------------------------------------------------
        // 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();
        }
コード例 #2
0
 //-----------------------------------------------------------------------------------
 // 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();
             }
         }
     }
 }