Beispiel #1
0
        private void MakeOutputBufferMonitor()
        {
            CustomLabel lbl = new CustomLabel();

            lbl.Location = new Point(380, meterHeight + 200);
            lbl.Size     = new Size(175, 28);
            lbl.Font     = buttonFont;
            lbl.setCharWidth(8);
            lbl.type = CustomLabel.LabelType.ENGRAVED;
            lbl.Text = "OUT BUFFER";
            this.Controls.Add(lbl);

            outBufferDisp          = new SegDisp(4, false, "");
            outBufferDisp.Location = new Point(380, meterHeight + 232);
            outBufferDisp.Size     = new Size(85, 35);
            this.Controls.Add(outBufferDisp);

            MocrButton flush = new MocrButton();

            flush.Location    = new Point(470, meterHeight + 232);
            flush.Size        = new Size(85, 35);
            flush.buttonStyle = MocrButton.style.THIN_BORDER_LIGHT;
            flush.Text        = "FLUSH BUFFER";
            flush.Font        = smallFont;
            flush.Click      += (sender, e) => FlushBuffer(sender, e, pflBuffer);
            this.Controls.Add(flush);
        }
Beispiel #2
0
        public void MakeServerLoopDurationDisplay()
        {
            CustomLabel lbl = new CustomLabel();

            lbl.Font = buttonFont;
            lbl.type = CustomLabel.LabelType.ENGRAVED;
            lbl.setlineOffset(3.0);
            lbl.Location = new Point(20, 130 + meterHeight);
            lbl.Size     = new Size(80, 28);
            lbl.Text     = "LOOPTIME";
            this.Controls.Add(lbl);

            loopIntervalDisp          = new SegDisp(3, false, "");
            loopIntervalDisp.Location = new Point(18, meterHeight + 165);
            loopIntervalDisp.Size     = new Size(85, 40);
            this.Controls.Add(loopIntervalDisp);

            lbl      = new CustomLabel();
            lbl.Font = buttonFont;
            lbl.type = CustomLabel.LabelType.ENGRAVED;
            lbl.setlineOffset(3.0);
            lbl.Location = new Point(20, 230 + meterHeight);
            lbl.Size     = new Size(80, 28);
            lbl.Text     = "LOOPMAX";
            this.Controls.Add(lbl);

            loopTimeDisp          = new SegDisp(3, false, "");
            loopTimeDisp.Location = new Point(18, meterHeight + 265);
            loopTimeDisp.Size     = new Size(85, 40);
            this.Controls.Add(loopTimeDisp);
        }