示例#1
0
        private void loadHypnogramToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult   result;
            OpenFileDialog ofd = new OpenFileDialog();

            result = ofd.ShowDialog();
            if (result != DialogResult.OK)
            {
                return;
            }

            var hypnogram = new Hypnogram();

            hypnogram.LoadFromFile(ofd.FileName);

            psgViewControl1.SetHypnogram(hypnogram);
            psgViewControl1.Invalidate();
            psgViewControl1.Update();
        }
示例#2
0
 public void SetHypnogram(Hypnogram hypnogram)
 {
     _hypnogram = hypnogram;
     Invalidate();
 }