private void Vts500Menu_OracleQuery(object sender, EventArgs e) { Oracle_QueryClient form = new Oracle_QueryClient(); form.oracle = vts500.oracle; form.Show(); }
private void gridOracle_CellContentClick(object sender, DataGridViewCellEventArgs e) { int row = e.RowIndex; int col = e.ColumnIndex; if (row >= 0 && col >= 0) { DataGridViewRow drow = gridOracle.Rows[row]; string columnName = gridOracle.Columns[col].Name; switch (columnName) { case "PCB_NAME": Oracle_QueryClient newWin = new Oracle_QueryClient(); newWin.RemoteQuery = QueryDetalle( drow.Cells["PCB_NO"].Value.ToString(), drow.Cells["TEST_MACHINE_ID"].Value.ToString(), drow.Cells["SAVED_MACHINE_ID"].Value.ToString(), drow.Cells["PROGRAM_NAME_ID"].Value.ToString(), drow.Cells["REVISION_NO"].Value.ToString(), drow.Cells["SERIAL_NO"].Value.ToString(), drow.Cells["LOAD_COUNT"].Value.ToString() ); newWin.Show(); break; } } }