Beispiel #1
0
        public override bool Init()
        {
            Autodetection<DigitalArduino> au = new Autodetection<DigitalArduino>();
            oscillo = au.Detection();
            if (oscillo == null)
                return false;

            Text = oscillo.GetName();

            return base.Init();
        }
Beispiel #2
0
        public override bool Init()
        {
            Autodetection <DigitalArduino> au = new Autodetection <DigitalArduino>();

            oscillo = au.Detection();
            if (oscillo == null)
            {
                return(false);
            }

            Text = oscillo.GetName();

            return(base.Init());
        }
Beispiel #3
0
        public DigitalArduinoToolStrip(DigitalArduino osc, GraphControl gc)
        {
            oscillo      = osc;
            graphControl = gc;

            this.sampleCountLabel = new System.Windows.Forms.ToolStripLabel();
            this.sampleCount      = new OnlyNumbersToolStripTextBox();

            //
            // toolStrip2
            //
            this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.sampleCountLabel,
                this.sampleCount
            });
            this.toolStrip.Location = new System.Drawing.Point(3, 0);
            this.toolStrip.Name     = "toolStrip2";
            this.toolStrip.Size     = new System.Drawing.Size(243, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text     = "toolStrip2";
            //
            // sampleCountLabel
            //
            this.sampleCountLabel.Size = new System.Drawing.Size(54, 22);
            this.sampleCountLabel.Text = "time(ms)";
            //
            // sampleCountLabel
            //
            this.sampleCount.Size       = new System.Drawing.Size(54, 22);
            this.sampleCount.Text       = "1000";
            this.sampleCount.textReady += new EventHandler(sampleCount_textReady);

            //set values
            oscillo.SetMeasuringTime(int.Parse(sampleCount.Text));
        }
        public DigitalArduinoToolStrip(DigitalArduino osc, GraphControl gc)
        {
            oscillo = osc;
            graphControl = gc;

            this.sampleCountLabel = new System.Windows.Forms.ToolStripLabel();
            this.sampleCount = new OnlyNumbersToolStripTextBox();

            //
            // toolStrip2
            //
            this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.sampleCountLabel,
            this.sampleCount
             });
            this.toolStrip.Location = new System.Drawing.Point(3, 0);
            this.toolStrip.Name = "toolStrip2";
            this.toolStrip.Size = new System.Drawing.Size(243, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text = "toolStrip2";
            //
            // sampleCountLabel
            //
            this.sampleCountLabel.Size = new System.Drawing.Size(54, 22);
            this.sampleCountLabel.Text = "time(ms)";
            //
            // sampleCountLabel
            //
            this.sampleCount.Size = new System.Drawing.Size(54, 22);
            this.sampleCount.Text = "1000";
            this.sampleCount.textReady += new EventHandler(sampleCount_textReady);

            //set values
            oscillo.SetMeasuringTime(int.Parse(sampleCount.Text));
        }