示例#1
0
        public ImageStreamWnd(ImageDataStream dataStream, ILogger logger)
        {
            InitializeComponent();

            this.dataStream = dataStream;
            this.logger     = logger;
            timer.Interval  = 500;

            trackBar.Minimum   = 0;
            trackBar.Maximum   = Convert.ToInt32(dataStream.DataLines.Count());
            this.HasToSetFrame = true;

            this.Text        = "Image Stream: " + dataStream.ShortName;
            this.windowState = StreamWindowState.Normal;
        }
示例#2
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            if (this.windowState == StreamWindowState.Normal)
            {
                if (CurrentHotFrame == null)
                {
                    MessageBox.Show("No Hot Frame selected! Use frame window to create a new hot frame, and select it!", "No Hot Frame selected!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return;
                }

                this.windowState  = StreamWindowState.DigitizePoints;
                btnDigitize1.Text = "ND (F1)";
                frameBox.Cursor   = Cursors.Cross;
            }
            else if (this.windowState == StreamWindowState.DigitizePoints)
            {
                this.windowState  = StreamWindowState.Normal;
                frameBox.Cursor   = Cursors.Default;
                btnDigitize1.Text = "D (F1)";
                frameBox.Cursor   = Cursors.Default;
            }
        }