示例#1
0
        public Window2(MainWindow mw)
        {
            main = mw;

            InitializeComponent();

            Title = "Notes on " + System.IO.Path.GetFileNameWithoutExtension(main.noteFilePath);
            StreamReader noteFile = new StreamReader(new FileStream(main.noteFilePath, FileMode.OpenOrCreate, FileAccess.Read), Encoding.ASCII);
            Notes.Text = noteFile.ReadToEnd();
            noteFile.Close();
        }
示例#2
0
        public Window1(MainWindow mw)
        {
            main = mw;

            InitializeComponent();

            Title = "Select channels from dataset " + main.headerFileName;
            FileInfo.Text = main.bdf.ToString().Trim();
            SelChan.Text = "1-" + main.bdf.NumberOfChannels.ToString("0"); //initialize channel selection string

            main.includeANAs = true;
        }
示例#3
0
 public ChannelGraph(MainWindow containingWindow, int channelNumber)
     : base()
 {
     _channel = channelNumber;
     this.Width = containingWindow.BDFLength; //NOTE: always scaled in seconds
     bdf = containingWindow.bdf;
     _channelLabel = new TextBlock(new Run(bdf.channelLabel(_channel)));
     this.VerticalAlignment = VerticalAlignment.Top;
     path.Stroke = Brushes.Black;
     path.StrokeLineJoin = PenLineJoin.Round;
     path.Data = geometry;
     this.Children.Add(path);
     this.ToolTip = bdf.channelLabel(_channel) + "(" + (_channel + 1).ToString("0") + ")";
     baseline.X1 = 0;
     baseline.HorizontalAlignment = HorizontalAlignment.Left;
     baseline.VerticalAlignment = VerticalAlignment.Top;
     baseline.Stroke = Brushes.LightBlue;
     Grid.SetColumn(baseline, 0);
     Grid.SetRow(baseline, 0);
     Grid.SetColumnSpan(baseline, 2);
     Panel.SetZIndex(baseline, int.MinValue);
     containingWindow.MainFrame.Children.Add(baseline);
 }