Ejemplo n.º 1
0
        } // LoadFormData

        //-----------------------------------------------------------------------------------
        // Opens the Line Section dialog displaying the Line Section selected in the grid
        //-----------------------------------------------------------------------------------
        private void gridLineSections_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                int id = Convert.ToInt32(gridLineSections.Rows[e.RowIndex].Cells[gridLineSections.Columns["Zone ID"].Index].Value.ToString());
                if (id > 0)
                {
                    BPLineSectionDetails runform = new BPLineSectionDetails(id, _connectionstring, true);
                    runform.ShowDialog();
                }
            }
        }
Ejemplo n.º 2
0
        } // loadformdata

        //-----------------------------------------------------------------------------------
        // User Double Clicks on Line Section grid - displays Line Section Form for selected Line Section
        //-----------------------------------------------------------------------------------
        private void gridLineSections_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (_allow_open_line_sections)
            {
                if (e.RowIndex >= 0)
                {
                    int zoneid = Convert.ToInt32(gridLineSections.Rows[e.RowIndex].Cells[gridLineSections.Columns["Zone ID"].Index].Value.ToString());
                    if (zoneid > 0)
                    {
                        BPLineSectionDetails lsform = new BPLineSectionDetails(zoneid, _connectionstring, false);
                        lsform.ShowDialog();
                    }
                }
            }
        }