public WaveDisplayUserControl(MainForm parentForm)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // Constructor code after the InitializeComponent() call.
            //
            this.parentForm = parentForm;
            this.waveData = new float[128];
            this.harmonicsData = new float[128];
            this.emptyData = new float[128];
            this.dftData = new float[128];
            this.fileName = "";
            for (int i = 0; i < 128; i++)
            {
                this.waveData[i] = 0.0F;
                this.harmonicsData[i] = 0.0F;
                this.emptyData[i] = 0.0F;
                this.dftData[i] = 0.0F;
            }

            this.selected = false;
            this.loaded = false;
        }
		public WaveDisplayUserControl(MainForm parentForm)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			// Ensure the paint methods are called if resized
			ResizeRedraw = true;
			
			//
			// Constructor code after the InitializeComponent() call.
			//
			this.parentForm = parentForm;
			
			// initialize the data arrays
			this.waveData = new float[128];
			this.morphedData = new float[128];

			// define the drawing properties for the waveform
			drawingProperties = DrawingProperties.Blue;
			drawingProperties.Margin = 0;
			drawingProperties.NumberOfHorizontalLines = 2;
			drawingProperties.DrawRoundedRectangles = false;
			drawingProperties.DrawHorizontalTickMarks = false;
			drawingProperties.DrawVerticalTickMarks = false;
			drawingProperties.DrawLabels = false;
			drawingProperties.DisplayTime = false;
			drawingProperties.TimeLineUnit = TimelineUnit.Samples;
		}