Esempio n. 1
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(DevManDevice));

            this.splitContainer1 = new SplitContainer();
            this.tvDev           = new TreeView();
            this.imageList1      = new ImageList(this.components);
            this.devMan_Dev1     = new DevMan_DevTB();
            this.devManAllDev1   = new DevManAllDev();
            ((ISupportInitialize)this.splitContainer1).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            base.SuspendLayout();
            this.splitContainer1.BorderStyle = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.splitContainer1, "splitContainer1");
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Panel1.Controls.Add(this.tvDev);
            this.splitContainer1.Panel2.Controls.Add(this.devMan_Dev1);
            this.splitContainer1.Panel2.Controls.Add(this.devManAllDev1);
            this.tvDev.BorderStyle = BorderStyle.None;
            componentResourceManager.ApplyResources(this.tvDev, "tvDev");
            this.tvDev.HideSelection = false;
            this.tvDev.ImageList     = this.imageList1;
            this.tvDev.Name          = "tvDev";
            this.tvDev.Nodes.AddRange(new TreeNode[]
            {
                (TreeNode)componentResourceManager.GetObject("tvDev.Nodes")
            });
            this.tvDev.AfterCollapse        += new TreeViewEventHandler(this.tvDev_AfterCollapse);
            this.tvDev.AfterExpand          += new TreeViewEventHandler(this.tvDev_AfterExpand);
            this.tvDev.AfterSelect          += new TreeViewEventHandler(this.tvDev_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, "deviceoff.gif");
            this.imageList1.Images.SetKeyName(3, "deviceon.gif");
            this.devMan_Dev1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.devMan_Dev1, "devMan_Dev1");
            this.devMan_Dev1.Name        = "devMan_Dev1";
            this.devManAllDev1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.devManAllDev1, "devManAllDev1");
            this.devManAllDev1.Name = "devManAllDev1";
            base.AutoScaleMode      = AutoScaleMode.None;
            this.BackColor          = Color.WhiteSmoke;
            base.Controls.Add(this.splitContainer1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "DevManDevice";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((ISupportInitialize)this.splitContainer1).EndInit();
            this.splitContainer1.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Esempio n. 2
0
 private void changeTreeSelect(string devName)
 {
     DevManAllDev.PostMessage(this.m_pParent.Handle, 63000u, 0, devName);
 }