//dynamic redrawing public void Redraw(int offset) { if (fileLength > 0) { if (globalFrmbytePlot != null) { globalFrmbytePlot.Plot(ref fileBufferArray, fileLength, frequency, offset, globalFrmEncode, this); } if (globalFrmDotPlot != null) { globalFrmDotPlot.Plot(ref fileBufferArray, fileLength, offset); } if (globalFrmPresence != null) { globalFrmPresence.Plot(ref fileBufferArray, fileLength, offset); } if (globalFrmRGBPlot != null) { globalFrmRGBPlot.Plot(ref fileBufferArray, fileLength, offset); } if (globalFrmBitPlot != null) { globalFrmBitPlot.Plot(ref fileBufferArray, fileLength, offset); } if (globalFrmAttractor != null) { globalFrmAttractor.Plot(ref fileBufferArray, fileLength, offset); } if (globalFrmFrequency != null) { globalFrmFrequency.PlotHistogramWindow(ref fileBufferArray, fileLength, offset); } //globalFrmNavigator.setPosition(offset); } }
//byte plot private void bitPlotToolStripMenuItem_Click(object sender, EventArgs e) { var frmbytePlot = new FrmBytePlot(); globalFrmbytePlot = frmbytePlot; frmbytePlot.MdiParent = this; if (fileLength > 0) { frmbytePlot.Plot(ref fileBufferArray, fileLength, frequency, 0, globalFrmEncode, this); } frmbytePlot.Show(); }
//byte plot private void bitPlotToolStripMenuItem_Click(object sender, EventArgs e) { var frmbytePlot = new FrmBytePlot(); globalFrmbytePlot = frmbytePlot; frmbytePlot.MdiParent = this; if (fileLength > 0) frmbytePlot.Plot(ref fileBufferArray, fileLength, frequency, 0, globalFrmEncode, this); frmbytePlot.Show(); }