예제 #1
0
 private void startToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SetupChart();
     Recorder = new LoopbackRecorder();
     Recorder.StartRecording();
     stopToolStripMenuItem.Enabled    = true;
     processToolStripMenuItem.Enabled = true;
     startToolStripMenuItem.Enabled   = false;
     openToolStripMenuItem.Enabled    = false;
 }
예제 #2
0
        private void clearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Wave != null)
            {
                Wave.Close();
                Wave.Dispose();
                Wave = null;
            }

            if (Recorder != null)
            {
                Recorder.StopRecording();
                Recorder = null;
            }

            SetupChart();

            processToolStripMenuItem.Enabled = false;
            startToolStripMenuItem.Enabled   = true;
            stopToolStripMenuItem.Enabled    = false;
            openToolStripMenuItem.Enabled    = true;
            clearToolStripMenuItem.Enabled   = false;
            saveToolStripMenuItem.Enabled    = false;
        }