//-------------------------------------------------------------------------- // Opens the Line Details form for the specified ID //-------------------------------------------------------------------------- public void OpenForm_LineDetails(int ID) { SWLineDetails detailform = new SWLineDetails(ID, _cwdata._connectionstring, true); detailform.ShowDialog(); detailform.Dispose(); }
//----------------------------------------------------------------------------------- // Show the Line Form //----------------------------------------------------------------------------------- private void btnShowLine_Click(object sender, EventArgs e) { if (_allow_open_lines) { if (_lineid > 0) { SWLineDetails ldform = new SWLineDetails(_lineid, _connectionstring, false); ldform.ShowDialog(); ldform.Dispose(); } } }