コード例 #1
0
 private void changeTreeSelect(string objID)
 {
     OtherDeviceISGBrPanel.PostMessage(this.m_pParent.Handle, 63000u, 0, objID);
 }
コード例 #2
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(OtherDevices));

            this.tvDevOther              = new TreeView();
            this.imageList1              = new ImageList(this.components);
            this.splitContainer1         = new SplitContainer();
            this.otherDeviceISGSubMeter1 = new OtherDeviceISGSubMeter();
            this.otherDeviceISGBrPanel1  = new OtherDeviceISGBrPanel();
            this.otherDevicesAllDev1     = new OtherDevicesAllDev();
            ((ISupportInitialize)this.splitContainer1).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            base.SuspendLayout();
            this.tvDevOther.BorderStyle = BorderStyle.None;
            componentResourceManager.ApplyResources(this.tvDevOther, "tvDevOther");
            this.tvDevOther.HideSelection = false;
            this.tvDevOther.ImageList     = this.imageList1;
            this.tvDevOther.Name          = "tvDevOther";
            this.tvDevOther.Nodes.AddRange(new TreeNode[]
            {
                (TreeNode)componentResourceManager.GetObject("tvDevOther.Nodes")
            });
            this.tvDevOther.AfterCollapse   += new TreeViewEventHandler(this.tvDevOther_AfterCollapse);
            this.tvDevOther.AfterExpand     += new TreeViewEventHandler(this.tvDevOther_AfterExpand);
            this.tvDevOther.AfterSelect     += new TreeViewEventHandler(this.tvDevOther_AfterSelect);
            this.imageList1.ImageStream      = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream");
            this.imageList1.TransparentColor = Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "folderclosed.gif");
            this.imageList1.Images.SetKeyName(1, "folderopen.gif");
            this.imageList1.Images.SetKeyName(2, "gatewayoff.gif");
            this.imageList1.Images.SetKeyName(3, "gatewayon.gif");
            this.imageList1.Images.SetKeyName(4, "ammeteroff.gif");
            this.imageList1.Images.SetKeyName(5, "ammeteron.gif");
            this.imageList1.Images.SetKeyName(6, "Bank.png");
            this.splitContainer1.BorderStyle = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.splitContainer1, "splitContainer1");
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Panel1.Controls.Add(this.tvDevOther);
            this.splitContainer1.Panel2.Controls.Add(this.otherDeviceISGSubMeter1);
            this.splitContainer1.Panel2.Controls.Add(this.otherDeviceISGBrPanel1);
            this.splitContainer1.Panel2.Controls.Add(this.otherDevicesAllDev1);
            this.otherDeviceISGSubMeter1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDeviceISGSubMeter1, "otherDeviceISGSubMeter1");
            this.otherDeviceISGSubMeter1.Name     = "otherDeviceISGSubMeter1";
            this.otherDeviceISGBrPanel1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDeviceISGBrPanel1, "otherDeviceISGBrPanel1");
            this.otherDeviceISGBrPanel1.Name   = "otherDeviceISGBrPanel1";
            this.otherDevicesAllDev1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDevicesAllDev1, "otherDevicesAllDev1");
            this.otherDevicesAllDev1.Name = "otherDevicesAllDev1";
            base.AutoScaleMode            = AutoScaleMode.None;
            this.BackColor = Color.WhiteSmoke;
            base.Controls.Add(this.splitContainer1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "OtherDevices";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((ISupportInitialize)this.splitContainer1).EndInit();
            this.splitContainer1.ResumeLayout(false);
            base.ResumeLayout(false);
        }