I'm trying to make a program that will read some values, analyze them and plot the result. I can't get the plot thing to work though, which probably is due to faulty parameters being sent in to my plot class.
This is what I have in my Form class:
private void FileButton_Click(object sender, EventArgs e)
{
OpenFileDialog ReadFileDialog = new OpenFileDialog();
if (ReadFileDialog.ShowDialog() == DialogResult.OK)
{
ReadFile Acceleration = new ReadFile();
if (PlotResultCheckbox.Checked)
{
PlotClass PlotResult = new PlotClass();
//The FormClass being the class I'll call to plot from various part of my program
PlotResult.FFTPlot();
}
}
}
private void FFTPlotWindow_Load(object sender, EventArgs e)
{
//Don't really know what to put here but this is my Plot-window anyway
}
What parameters, besides the obvious ones with the data I shall plot, should I pass to my Plot class? Should I make FFTPlotWindow public?
Thanks in advance Axel