public void Initialize(Opc.Da.Server _server, BrowseFilters _filters, BrowseTreeCtrl _BrowseCTRL) { try { this.BrowseCTRL = _BrowseCTRL; this.server = (Opc.Da.Server)_server.Clone(); if (!this.server.IsConnected) { this.server.Connect(); } this.TagsDT.Rows.Clear(); this.TagsDV = this.TagsDT.DefaultView; this.TagsDGV.DataSource = this.TagsDV; this.SetGrid(); this.m_filters = new BrowseFilters(); this.m_filters.ReturnAllProperties = true; this.m_filters.ReturnPropertyValues = true; } catch (System.Exception ex) { Program.showErrorMessage(ex.Message); } }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BrowseItemsDlg)); this.LeftPN = new System.Windows.Forms.Panel(); this.BrowseCTRL = new OPCClient.BrowseTreeCtrl(); this.RightPN = new System.Windows.Forms.Panel(); this.PropertiesCTRL = new OPCClient.PropertyListViewCtrl(); this.ButtonsPN = new System.Windows.Forms.Panel(); this.button1 = new System.Windows.Forms.Button(); this.DoneBTN = new System.Windows.Forms.Button(); this.SplitterVL = new System.Windows.Forms.Splitter(); this.CenterPN = new System.Windows.Forms.Panel(); this.TagGridCTRL = new OPCClient.TagListGridCtrl(); this.SplitterVR = new System.Windows.Forms.Splitter(); this.LeftPN.SuspendLayout(); this.RightPN.SuspendLayout(); this.ButtonsPN.SuspendLayout(); this.CenterPN.SuspendLayout(); this.SuspendLayout(); // // LeftPN // this.LeftPN.Controls.Add(this.BrowseCTRL); this.LeftPN.Dock = System.Windows.Forms.DockStyle.Left; this.LeftPN.Location = new System.Drawing.Point(0, 0); this.LeftPN.Name = "LeftPN"; this.LeftPN.Padding = new System.Windows.Forms.Padding(4, 4, 0, 0); this.LeftPN.Size = new System.Drawing.Size(341, 548); this.LeftPN.TabIndex = 6; // // BrowseCTRL // this.BrowseCTRL.Dock = System.Windows.Forms.DockStyle.Fill; this.BrowseCTRL.Location = new System.Drawing.Point(4, 4); this.BrowseCTRL.Name = "BrowseCTRL"; this.BrowseCTRL.Size = new System.Drawing.Size(337, 544); this.BrowseCTRL.TabIndex = 1; // // RightPN // this.RightPN.Controls.Add(this.PropertiesCTRL); this.RightPN.Dock = System.Windows.Forms.DockStyle.Right; this.RightPN.Location = new System.Drawing.Point(919, 0); this.RightPN.Name = "RightPN"; this.RightPN.Padding = new System.Windows.Forms.Padding(0, 4, 4, 0); this.RightPN.Size = new System.Drawing.Size(266, 548); this.RightPN.TabIndex = 8; // // PropertiesCTRL // this.PropertiesCTRL.AllowDrop = true; this.PropertiesCTRL.Dock = System.Windows.Forms.DockStyle.Fill; this.PropertiesCTRL.Location = new System.Drawing.Point(0, 4); this.PropertiesCTRL.Name = "PropertiesCTRL"; this.PropertiesCTRL.Size = new System.Drawing.Size(262, 544); this.PropertiesCTRL.TabIndex = 0; // // ButtonsPN // this.ButtonsPN.Controls.Add(this.button1); this.ButtonsPN.Controls.Add(this.DoneBTN); this.ButtonsPN.Dock = System.Windows.Forms.DockStyle.Bottom; this.ButtonsPN.Location = new System.Drawing.Point(0, 548); this.ButtonsPN.Name = "ButtonsPN"; this.ButtonsPN.Size = new System.Drawing.Size(1185, 36); this.ButtonsPN.TabIndex = 0; // // button1 // this.button1.Location = new System.Drawing.Point(355, 6); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 1; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Visible = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // DoneBTN // this.DoneBTN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.DoneBTN.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.DoneBTN.Location = new System.Drawing.Point(555, 8); this.DoneBTN.Name = "DoneBTN"; this.DoneBTN.Size = new System.Drawing.Size(75, 23); this.DoneBTN.TabIndex = 0; this.DoneBTN.Text = "Done"; this.DoneBTN.Click += new System.EventHandler(this.DoneBTN_Click); // // SplitterVL // this.SplitterVL.Location = new System.Drawing.Point(341, 0); this.SplitterVL.Name = "SplitterVL"; this.SplitterVL.Size = new System.Drawing.Size(3, 548); this.SplitterVL.TabIndex = 9; this.SplitterVL.TabStop = false; // // CenterPN // this.CenterPN.Controls.Add(this.TagGridCTRL); this.CenterPN.Dock = System.Windows.Forms.DockStyle.Fill; this.CenterPN.Location = new System.Drawing.Point(344, 0); this.CenterPN.Name = "CenterPN"; this.CenterPN.Size = new System.Drawing.Size(575, 548); this.CenterPN.TabIndex = 10; // // TagGridCTRL // this.TagGridCTRL.Dock = System.Windows.Forms.DockStyle.Fill; this.TagGridCTRL.Location = new System.Drawing.Point(0, 0); this.TagGridCTRL.Name = "TagGridCTRL"; this.TagGridCTRL.Size = new System.Drawing.Size(575, 548); this.TagGridCTRL.TabIndex = 0; // // SplitterVR // this.SplitterVR.Dock = System.Windows.Forms.DockStyle.Right; this.SplitterVR.Location = new System.Drawing.Point(916, 0); this.SplitterVR.Name = "SplitterVR"; this.SplitterVR.Size = new System.Drawing.Size(3, 548); this.SplitterVR.TabIndex = 11; this.SplitterVR.TabStop = false; // // BrowseItemsDlg // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(1185, 584); this.Controls.Add(this.SplitterVR); this.Controls.Add(this.CenterPN); this.Controls.Add(this.RightPN); this.Controls.Add(this.SplitterVL); this.Controls.Add(this.LeftPN); this.Controls.Add(this.ButtonsPN); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "BrowseItemsDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Browse Address Space"; this.LeftPN.ResumeLayout(false); this.RightPN.ResumeLayout(false); this.ButtonsPN.ResumeLayout(false); this.CenterPN.ResumeLayout(false); this.ResumeLayout(false); }