Beispiel #1
0
 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(ViewEZMacNetwork));
     this.txtTopLeft = new TextBox();
     this.txtTopRight = new TextBox();
     this.txtBottomLeft = new TextBox();
     this.txtBottomRight = new TextBox();
     this.txtTopLeftTime = new TextBox();
     this.txtBottomLeftTime = new TextBox();
     this.txtTopRightTime = new TextBox();
     this.txtBottomRightTime = new TextBox();
     this.pbBottomLeft = new PictureBox();
     this.pbBottomRight = new PictureBox();
     this.pbArrowTopLeft = new PictureBox();
     this.pbArrowTopRight = new PictureBox();
     this.pbArrowBottomLeft = new PictureBox();
     this.pbArrowBottomRight = new PictureBox();
     this.pbTopLeft = new PictureBox();
     this.pbTopRight = new PictureBox();
     this.pbCenter = new PictureBox();
     this.humButtomLeft = new ViewHumidity();
     this.humTopRight = new ViewHumidity();
     this.humTopLeft = new ViewHumidity();
     this.thmBottomRight = new ViewThermometer();
     this.viewSmallBattery4 = new ViewSmallBattery();
     this.viewSmallBattery3 = new ViewSmallBattery();
     this.viewSmallBattery2 = new ViewSmallBattery();
     this.viewSmallBattery1 = new ViewSmallBattery();
     this.thmTopRight = new ViewThermometer();
     this.thmBottomLeft = new ViewThermometer();
     this.thmTopLeft = new ViewThermometer();
     this.humButtomRight = new ViewHumidity();
     ((ISupportInitialize) this.pbBottomLeft).BeginInit();
     ((ISupportInitialize) this.pbBottomRight).BeginInit();
     ((ISupportInitialize) this.pbArrowTopLeft).BeginInit();
     ((ISupportInitialize) this.pbArrowTopRight).BeginInit();
     ((ISupportInitialize) this.pbArrowBottomLeft).BeginInit();
     ((ISupportInitialize) this.pbArrowBottomRight).BeginInit();
     ((ISupportInitialize) this.pbTopLeft).BeginInit();
     ((ISupportInitialize) this.pbTopRight).BeginInit();
     ((ISupportInitialize) this.pbCenter).BeginInit();
     base.SuspendLayout();
     this.txtTopLeft.BackColor = Color.White;
     this.txtTopLeft.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtTopLeft.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtTopLeft.Location = new Point(0x58, -2);
     this.txtTopLeft.Name = "txtTopLeft";
     this.txtTopLeft.ReadOnly = true;
     this.txtTopLeft.Size = new Size(20, 13);
     this.txtTopLeft.TabIndex = 1;
     this.txtTopLeft.Text = "#1";
     this.txtTopRight.BackColor = Color.White;
     this.txtTopRight.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtTopRight.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtTopRight.Location = new Point(0x114, 30);
     this.txtTopRight.Name = "txtTopRight";
     this.txtTopRight.ReadOnly = true;
     this.txtTopRight.Size = new Size(20, 13);
     this.txtTopRight.TabIndex = 1;
     this.txtTopRight.Text = "#2";
     this.txtBottomLeft.BackColor = Color.White;
     this.txtBottomLeft.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtBottomLeft.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtBottomLeft.Location = new Point(0x62, 0xca);
     this.txtBottomLeft.Name = "txtBottomLeft";
     this.txtBottomLeft.ReadOnly = true;
     this.txtBottomLeft.Size = new Size(20, 13);
     this.txtBottomLeft.TabIndex = 1;
     this.txtBottomLeft.Text = "#3";
     this.txtBottomRight.BackColor = Color.White;
     this.txtBottomRight.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtBottomRight.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtBottomRight.Location = new Point(0x111, 0xc7);
     this.txtBottomRight.Name = "txtBottomRight";
     this.txtBottomRight.ReadOnly = true;
     this.txtBottomRight.Size = new Size(20, 13);
     this.txtBottomRight.TabIndex = 1;
     this.txtBottomRight.Text = "#4";
     this.txtTopLeftTime.BackColor = SystemColors.Window;
     this.txtTopLeftTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtTopLeftTime.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtTopLeftTime.Location = new Point(0x62, 0x38);
     this.txtTopLeftTime.Name = "txtTopLeftTime";
     this.txtTopLeftTime.ReadOnly = true;
     this.txtTopLeftTime.Size = new Size(20, 13);
     this.txtTopLeftTime.TabIndex = 1;
     this.txtTopLeftTime.Text = "#1";
     this.txtBottomLeftTime.BackColor = SystemColors.Window;
     this.txtBottomLeftTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtBottomLeftTime.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtBottomLeftTime.Location = new Point(0x48, 0xb0);
     this.txtBottomLeftTime.Name = "txtBottomLeftTime";
     this.txtBottomLeftTime.ReadOnly = true;
     this.txtBottomLeftTime.Size = new Size(20, 13);
     this.txtBottomLeftTime.TabIndex = 1;
     this.txtBottomLeftTime.Text = "#1";
     this.txtTopRightTime.BackColor = SystemColors.Window;
     this.txtTopRightTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtTopRightTime.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtTopRightTime.Location = new Point(170, 0x35);
     this.txtTopRightTime.Name = "txtTopRightTime";
     this.txtTopRightTime.ReadOnly = true;
     this.txtTopRightTime.Size = new Size(20, 13);
     this.txtTopRightTime.TabIndex = 1;
     this.txtTopRightTime.Text = "#1";
     this.txtBottomRightTime.BackColor = SystemColors.Window;
     this.txtBottomRightTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtBottomRightTime.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
     this.txtBottomRightTime.Location = new Point(0xcf, 0xb2);
     this.txtBottomRightTime.Name = "txtBottomRightTime";
     this.txtBottomRightTime.ReadOnly = true;
     this.txtBottomRightTime.Size = new Size(20, 13);
     this.txtBottomRightTime.TabIndex = 1;
     this.txtBottomRightTime.Text = "#1";
     this.pbBottomLeft.BackgroundImage = (Image) resources.GetObject("pbBottomLeft.BackgroundImage");
     this.pbBottomLeft.BackgroundImageLayout = ImageLayout.None;
     this.pbBottomLeft.Location = new Point(40, 0xcd);
     this.pbBottomLeft.Name = "pbBottomLeft";
     this.pbBottomLeft.Size = new Size(0x40, 0x40);
     this.pbBottomLeft.SizeMode = PictureBoxSizeMode.Zoom;
     this.pbBottomLeft.TabIndex = 0;
     this.pbBottomLeft.TabStop = false;
     this.pbBottomRight.BackgroundImage = (Image) resources.GetObject("pbBottomRight.BackgroundImage");
     this.pbBottomRight.BackgroundImageLayout = ImageLayout.None;
     this.pbBottomRight.Location = new Point(0xd7, 0xce);
     this.pbBottomRight.Name = "pbBottomRight";
     this.pbBottomRight.Size = new Size(0x40, 0x40);
     this.pbBottomRight.SizeMode = PictureBoxSizeMode.Zoom;
     this.pbBottomRight.TabIndex = 0;
     this.pbBottomRight.TabStop = false;
     this.pbArrowTopLeft.BackgroundImage = (Image) resources.GetObject("pbArrowTopLeft.BackgroundImage");
     this.pbArrowTopLeft.BackgroundImageLayout = ImageLayout.None;
     this.pbArrowTopLeft.Image = (Image) resources.GetObject("pbArrowTopLeft.Image");
     this.pbArrowTopLeft.Location = new Point(80, 0x3b);
     this.pbArrowTopLeft.Name = "pbArrowTopLeft";
     this.pbArrowTopLeft.Size = new Size(0x1d, 0x1d);
     this.pbArrowTopLeft.TabIndex = 0;
     this.pbArrowTopLeft.TabStop = false;
     this.pbArrowTopRight.BackgroundImage = (Image) resources.GetObject("pbArrowTopRight.BackgroundImage");
     this.pbArrowTopRight.BackgroundImageLayout = ImageLayout.None;
     this.pbArrowTopRight.Image = (Image) resources.GetObject("pbArrowTopRight.Image");
     this.pbArrowTopRight.Location = new Point(170, 0x3e);
     this.pbArrowTopRight.Name = "pbArrowTopRight";
     this.pbArrowTopRight.Size = new Size(0x21, 0x1a);
     this.pbArrowTopRight.TabIndex = 0;
     this.pbArrowTopRight.TabStop = false;
     this.pbArrowBottomLeft.BackgroundImage = (Image) resources.GetObject("pbArrowBottomLeft.BackgroundImage");
     this.pbArrowBottomLeft.BackgroundImageLayout = ImageLayout.None;
     this.pbArrowBottomLeft.Image = (Image) resources.GetObject("pbArrowBottomLeft.Image");
     this.pbArrowBottomLeft.Location = new Point(0x56, 0xab);
     this.pbArrowBottomLeft.Name = "pbArrowBottomLeft";
     this.pbArrowBottomLeft.Size = new Size(0x1d, 0x23);
     this.pbArrowBottomLeft.TabIndex = 0;
     this.pbArrowBottomLeft.TabStop = false;
     this.pbArrowBottomRight.BackgroundImage = (Image) resources.GetObject("pbArrowBottomRight.BackgroundImage");
     this.pbArrowBottomRight.BackgroundImageLayout = ImageLayout.None;
     this.pbArrowBottomRight.Image = (Image) resources.GetObject("pbArrowBottomRight.Image");
     this.pbArrowBottomRight.Location = new Point(190, 180);
     this.pbArrowBottomRight.Name = "pbArrowBottomRight";
     this.pbArrowBottomRight.Size = new Size(0x1d, 0x1d);
     this.pbArrowBottomRight.TabIndex = 0;
     this.pbArrowBottomRight.TabStop = false;
     this.pbTopLeft.BackgroundImage = (Image) resources.GetObject("pbTopLeft.BackgroundImage");
     this.pbTopLeft.BackgroundImageLayout = ImageLayout.None;
     this.pbTopLeft.Location = new Point(0x21, 0);
     this.pbTopLeft.Name = "pbTopLeft";
     this.pbTopLeft.Size = new Size(0x40, 0x40);
     this.pbTopLeft.SizeMode = PictureBoxSizeMode.Zoom;
     this.pbTopLeft.TabIndex = 0;
     this.pbTopLeft.TabStop = false;
     this.pbTopRight.BackgroundImage = (Image) resources.GetObject("pbTopRight.BackgroundImage");
     this.pbTopRight.BackgroundImageLayout = ImageLayout.None;
     this.pbTopRight.Location = new Point(0xda, 0x22);
     this.pbTopRight.Name = "pbTopRight";
     this.pbTopRight.Size = new Size(0x40, 0x40);
     this.pbTopRight.SizeMode = PictureBoxSizeMode.Zoom;
     this.pbTopRight.TabIndex = 0;
     this.pbTopRight.TabStop = false;
     this.pbCenter.Image = (Image) resources.GetObject("pbCenter.Image");
     this.pbCenter.Location = new Point(90, 0x4d);
     this.pbCenter.Name = "pbCenter";
     this.pbCenter.Size = new Size(100, 0x66);
     this.pbCenter.TabIndex = 0;
     this.pbCenter.TabStop = false;
     this.humButtomLeft.BackColor = Color.Transparent;
     this.humButtomLeft.Location = new Point(5, 0xaf);
     this.humButtomLeft.Name = "humButtomLeft";
     this.humButtomLeft.Size = new Size(40, 40);
     this.humButtomLeft.TabIndex = 10;
     this.humTopRight.BackColor = Color.Transparent;
     this.humTopRight.Location = new Point(0xbc, 2);
     this.humTopRight.Name = "humTopRight";
     this.humTopRight.Size = new Size(40, 40);
     this.humTopRight.TabIndex = 8;
     this.humTopLeft.BackColor = Color.Transparent;
     this.humTopLeft.Location = new Point(0x27, 0x41);
     this.humTopLeft.Name = "humTopLeft";
     this.humTopLeft.Size = new Size(40, 40);
     this.humTopLeft.TabIndex = 7;
     this.thmBottomRight.BackColor = Color.Transparent;
     this.thmBottomRight.BackgroundImageLayout = ImageLayout.None;
     this.thmBottomRight.Location = new Point(0xb8, 230);
     this.thmBottomRight.Name = "thmBottomRight";
     this.thmBottomRight.Size = new Size(0x2a, 0x36);
     this.thmBottomRight.TabIndex = 3;
     this.viewSmallBattery4.BackgroundImage = (Image) resources.GetObject("viewSmallBattery4.BackgroundImage");
     this.viewSmallBattery4.BackgroundImageLayout = ImageLayout.None;
     this.viewSmallBattery4.Location = new Point(0x11b, 0xda);
     this.viewSmallBattery4.Name = "viewSmallBattery4";
     this.viewSmallBattery4.Size = new Size(0x13, 0x2b);
     this.viewSmallBattery4.TabIndex = 2;
     this.viewSmallBattery3.BackgroundImage = (Image) resources.GetObject("viewSmallBattery3.BackgroundImage");
     this.viewSmallBattery3.BackgroundImageLayout = ImageLayout.None;
     this.viewSmallBattery3.Location = new Point(0x6a, 0xd9);
     this.viewSmallBattery3.Name = "viewSmallBattery3";
     this.viewSmallBattery3.Size = new Size(0x13, 0x2b);
     this.viewSmallBattery3.TabIndex = 2;
     this.viewSmallBattery2.BackgroundImage = (Image) resources.GetObject("viewSmallBattery2.BackgroundImage");
     this.viewSmallBattery2.BackgroundImageLayout = ImageLayout.None;
     this.viewSmallBattery2.Location = new Point(0x11b, 0x31);
     this.viewSmallBattery2.Name = "viewSmallBattery2";
     this.viewSmallBattery2.Size = new Size(0x13, 0x2b);
     this.viewSmallBattery2.TabIndex = 2;
     this.viewSmallBattery1.BackgroundImage = (Image) resources.GetObject("viewSmallBattery1.BackgroundImage");
     this.viewSmallBattery1.BackgroundImageLayout = ImageLayout.None;
     this.viewSmallBattery1.Location = new Point(0x62, 12);
     this.viewSmallBattery1.Name = "viewSmallBattery1";
     this.viewSmallBattery1.Size = new Size(0x13, 0x2b);
     this.viewSmallBattery1.TabIndex = 2;
     this.thmTopRight.BackColor = Color.Transparent;
     this.thmTopRight.BackgroundImageLayout = ImageLayout.None;
     this.thmTopRight.Location = new Point(0xbd, 0x43);
     this.thmTopRight.Name = "thmTopRight";
     this.thmTopRight.Size = new Size(0x2a, 0x36);
     this.thmTopRight.TabIndex = 4;
     this.thmBottomLeft.BackColor = Color.Transparent;
     this.thmBottomLeft.BackgroundImageLayout = ImageLayout.None;
     this.thmBottomLeft.Location = new Point(10, 0xe5);
     this.thmBottomLeft.Name = "thmBottomLeft";
     this.thmBottomLeft.Size = new Size(0x2a, 0x36);
     this.thmBottomLeft.TabIndex = 5;
     this.thmTopLeft.BackColor = Color.Transparent;
     this.thmTopLeft.BackgroundImageLayout = ImageLayout.None;
     this.thmTopLeft.Location = new Point(-3, 0x19);
     this.thmTopLeft.Name = "thmTopLeft";
     this.thmTopLeft.Size = new Size(0x2a, 0x36);
     this.thmTopLeft.TabIndex = 6;
     this.humButtomRight.BackColor = Color.Transparent;
     this.humButtomRight.Location = new Point(0xe9, 0xa5);
     this.humButtomRight.Name = "humButtomRight";
     this.humButtomRight.Size = new Size(40, 40);
     this.humButtomRight.TabIndex = 9;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = Color.Transparent;
     this.BackgroundImageLayout = ImageLayout.None;
     base.Controls.Add(this.humButtomLeft);
     base.Controls.Add(this.humTopRight);
     base.Controls.Add(this.txtBottomLeft);
     base.Controls.Add(this.pbBottomLeft);
     base.Controls.Add(this.humTopLeft);
     base.Controls.Add(this.txtBottomRight);
     base.Controls.Add(this.pbBottomRight);
     base.Controls.Add(this.thmBottomRight);
     base.Controls.Add(this.txtTopLeftTime);
     base.Controls.Add(this.pbArrowTopLeft);
     base.Controls.Add(this.viewSmallBattery4);
     base.Controls.Add(this.viewSmallBattery3);
     base.Controls.Add(this.viewSmallBattery2);
     base.Controls.Add(this.viewSmallBattery1);
     base.Controls.Add(this.txtTopRight);
     base.Controls.Add(this.txtBottomRightTime);
     base.Controls.Add(this.txtTopRightTime);
     base.Controls.Add(this.txtBottomLeftTime);
     base.Controls.Add(this.txtTopLeft);
     base.Controls.Add(this.pbArrowTopRight);
     base.Controls.Add(this.pbArrowBottomLeft);
     base.Controls.Add(this.pbArrowBottomRight);
     base.Controls.Add(this.pbTopLeft);
     base.Controls.Add(this.pbTopRight);
     base.Controls.Add(this.pbCenter);
     base.Controls.Add(this.thmTopRight);
     base.Controls.Add(this.thmBottomLeft);
     base.Controls.Add(this.thmTopLeft);
     base.Controls.Add(this.humButtomRight);
     base.Name = "ViewEZMacNetwork";
     base.Size = new Size(0x131, 0x11e);
     base.Load += new EventHandler(this.ViewEZMacNetwork_Load);
     ((ISupportInitialize) this.pbBottomLeft).EndInit();
     ((ISupportInitialize) this.pbBottomRight).EndInit();
     ((ISupportInitialize) this.pbArrowTopLeft).EndInit();
     ((ISupportInitialize) this.pbArrowTopRight).EndInit();
     ((ISupportInitialize) this.pbArrowBottomLeft).EndInit();
     ((ISupportInitialize) this.pbArrowBottomRight).EndInit();
     ((ISupportInitialize) this.pbTopLeft).EndInit();
     ((ISupportInitialize) this.pbTopRight).EndInit();
     ((ISupportInitialize) this.pbCenter).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Beispiel #2
0
 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(ViewLandscape));
     this.labelBottom = new Label();
     this.labelPercent = new Label();
     this.viewSmallBattery1 = new ViewSmallBattery();
     base.SuspendLayout();
     this.labelBottom.Dock = DockStyle.Bottom;
     this.labelBottom.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.labelBottom.ForeColor = Color.White;
     this.labelBottom.Location = new Point(0, 0xe5);
     this.labelBottom.Name = "labelBottom";
     this.labelBottom.Size = new Size(0x15f, 0x1c);
     this.labelBottom.TabIndex = 1;
     this.labelBottom.Text = "--.-\x00b0C - ---- lux";
     this.labelBottom.TextAlign = ContentAlignment.BottomRight;
     this.labelPercent.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Regular, GraphicsUnit.Point, 0);
     this.labelPercent.ForeColor = Color.White;
     this.labelPercent.Location = new Point(5, 0);
     this.labelPercent.Name = "labelPercent";
     this.labelPercent.Size = new Size(0x47, 0x15);
     this.labelPercent.TabIndex = 3;
     this.labelPercent.Text = "---%";
     this.viewSmallBattery1.BackgroundImage = (System.Drawing.Image) resources.GetObject("viewSmallBattery1.BackgroundImage");
     this.viewSmallBattery1.BackgroundImageLayout = ImageLayout.None;
     this.viewSmallBattery1.Location = new Point(10, 0x17);
     this.viewSmallBattery1.Name = "viewSmallBattery1";
     this.viewSmallBattery1.Size = new Size(0x13, 0x2b);
     this.viewSmallBattery1.TabIndex = 0;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = Color.Transparent;
     this.BackgroundImage = (System.Drawing.Image) resources.GetObject("$this.BackgroundImage");
     this.BackgroundImageLayout = ImageLayout.Stretch;
     base.Controls.Add(this.labelPercent);
     base.Controls.Add(this.labelBottom);
     base.Controls.Add(this.viewSmallBattery1);
     this.DoubleBuffered = true;
     this.MaximumSize = new Size(0x15f, 0x101);
     base.Name = "ViewLandscape";
     base.Size = new Size(0x15f, 0x101);
     base.EnabledChanged += new EventHandler(this.ViewLandscape_EnabledChanged);
     base.ResumeLayout(false);
 }
Beispiel #3
0
        private void attachControls(int nodeIndex, out PictureBox a_bubble, out PictureBox a_arrow, out TextBox a_idTextBox, out ViewSmallBattery a_battery, out TextBox a_timeTextBox, out ViewThermometer a_thermometer, out ViewHumidity a_humidity)
        {
            switch (nodeIndex)
            {
                case 0:
                    a_arrow = this.pbArrowTopLeft;
                    a_idTextBox = this.txtTopLeft;
                    a_timeTextBox = this.txtTopLeftTime;
                    a_battery = this.viewSmallBattery1;
                    a_bubble = this.pbTopLeft;
                    a_thermometer = this.thmTopLeft;
                    a_humidity = this.humTopLeft;
                    return;

                case 1:
                    a_arrow = this.pbArrowTopRight;
                    a_idTextBox = this.txtTopRight;
                    a_timeTextBox = this.txtTopRightTime;
                    a_battery = this.viewSmallBattery2;
                    a_bubble = this.pbTopRight;
                    a_thermometer = this.thmTopRight;
                    a_humidity = this.humTopRight;
                    return;

                case 2:
                    a_arrow = this.pbArrowBottomLeft;
                    a_idTextBox = this.txtBottomLeft;
                    a_timeTextBox = this.txtBottomLeftTime;
                    a_battery = this.viewSmallBattery3;
                    a_bubble = this.pbBottomLeft;
                    a_thermometer = this.thmBottomLeft;
                    a_humidity = this.humButtomLeft;
                    return;

                case 3:
                    a_arrow = this.pbArrowBottomRight;
                    a_idTextBox = this.txtBottomRight;
                    a_timeTextBox = this.txtBottomRightTime;
                    a_battery = this.viewSmallBattery4;
                    a_bubble = this.pbBottomRight;
                    a_thermometer = this.thmBottomRight;
                    a_humidity = this.humButtomRight;
                    return;
            }
            a_arrow = null;
            a_idTextBox = null;
            a_timeTextBox = null;
            a_battery = null;
            a_bubble = null;
            a_thermometer = null;
            a_humidity = null;
        }