} /* Paint */ protected override void OnDoubleClick(DataGridViewCellEventArgs e) { if (DataGridView == null) { return; } if (e.ColumnIndex >= DataGridView.Columns.Count) { return; } ThumbNailImageColumn tnic = ((ThumbNailImageColumn)(this.DataGridView.Columns[e.ColumnIndex])); IWin32Window parent = tnic.Parent; if (parent.GetType() != typeof(PicesCommander)) { return; } PicesCommander pc = (PicesCommander)parent; if (pc == null) { return; } pc.ThumbnailDataGridView_CellContentDoubleClick(DataGridView, e); } /* OnDoubleClick */
public DepthPlotDisplay(PicesCommander _parent, PicesDataBase _dbConn, String _cruiseName, String _stationName, String _deploymentNum ) { if (String.IsNullOrEmpty(_cruiseName)) { cruiseName = ""; } else { cruiseName = _cruiseName; } if (String.IsNullOrEmpty(_stationName)) { stationName = ""; } else { stationName = _stationName; } if (String.IsNullOrEmpty(_deploymentNum)) { deploymentNum = ""; } else { deploymentNum = _deploymentNum; } parent = _parent; dbConn = _dbConn; configRec = new SipperConfigRec(); }