} /* ChartContextMenu */ private void DisplayImagesForASizeBucket(Object sender, EventArgs e) { if ((selectedSizeBucket < 0) || (bucketsDisplayed == null) || (selectedSizeBucket >= bucketsDisplayed.NumSizeBuckets)) { return; } float sizeStart = 0.0f; float sizeEnd = 0.0f; uint imageCount = 0; bucketsDisplayed.GetSizeBucketStats((uint)selectedSizeBucket, ref imageCount, ref sizeStart, ref sizeEnd); char castChar = 'B'; if (cast == "Down") { castChar = 'D'; } else if (cast == "Up") { castChar = 'U'; } PicesDataBaseImageList images = mainWinConn.ImagesQueryDeploymentSizeRange(cruise, station, deployment, classToPlot, castChar, statistic, sizeStart, sizeEnd, 0.0f, 0.0f, 1000, true); DisplayPicesImages dpi = new DisplayPicesImages(mainWinConn, bucketsDisplayed, selectedSizeBucket, 0.0f, 0.0f, images); dpi.ShowDialog(this); }
private void DisplayImagesForDepthBin(Object sender, EventArgs e) { if ((selectedDepthBin < 0) || (sizeDistribution == null) || (selectedDepthBin >= sizeDistribution.NumDepthBins)) { return; } float sizeStart = 0.0f; float sizeEnd = 0.0f; uint imageCount = 0; sizeDistribution.GetSizeBucketStats((uint)selectedSizeBucket, ref imageCount, ref sizeStart, ref sizeEnd); char castChar = 'B'; if (cast == "Down") { castChar = 'D'; } else if (cast == "Up") { castChar = 'U'; } float depthMin = selectedDepthBin * sizeDistribution.DepthBinSize; float depthMax = depthMin + sizeDistribution.DepthBinSize; PicesDataBaseImageList images = mainWinConn.ImagesQueryDeploymentSizeRange(cruise, station, deployment, classToPlot, castChar, statistic, sizeStart, sizeEnd, depthMin, depthMax, 1000, true); DisplayPicesImages dpi = new DisplayPicesImages(mainWinConn, sizeDistribution, selectedSizeBucket, depthMin, depthMax, images); dpi.ShowDialog(this); }