Exemplo n.º 1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (m_settings != null)
                {
                    m_settings.Refresh -= new EventHandler(m_settings_Refresh);
                    m_settings          = null;
                }

                // Dispose of all repositories that support IDisposable (the manager may not have taken
                // care of all of them).

                m_selectedElement = null;

                TreeView.ClearTagsRecursive(tvwElements.Nodes);
            }

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WmiInitialiseForm));
     this.btnOK                = new System.Windows.Forms.Button();
     this.btnCancel            = new System.Windows.Forms.Button();
     this.txtMachineName       = new LinkMe.Framework.Tools.Controls.TextBox();
     this.label1               = new System.Windows.Forms.Label();
     this.label2               = new System.Windows.Forms.Label();
     this.txtStartingNamespace = new LinkMe.Framework.Tools.Controls.TextBox();
     this.btnConnect           = new System.Windows.Forms.Button();
     this.tvwNamespaces        = new LinkMe.Framework.Tools.Controls.TreeView();
     this.imageListNamespaces  = new System.Windows.Forms.ImageList(this.components);
     this.tabOrderManager      = new LinkMe.Framework.Tools.Controls.TabOrderManager();
     ((System.ComponentModel.ISupportInitialize)(this.tabOrderManager)).BeginInit();
     this.SuspendLayout();
     //
     // btnOK
     //
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.Enabled      = false;
     this.btnOK.Location     = new System.Drawing.Point(240, 208);
     this.btnOK.Name         = "btnOK";
     this.btnOK.TabIndex     = 1;
     this.btnOK.Text         = "OK";
     this.btnOK.Click       += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(328, 208);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.TabIndex     = 2;
     this.btnCancel.Text         = "Cancel";
     //
     // txtMachineName
     //
     this.txtMachineName.Location = new System.Drawing.Point(128, 16);
     this.txtMachineName.Name     = "txtMachineName";
     this.txtMachineName.Size     = new System.Drawing.Size(136, 20);
     this.txtMachineName.TabIndex = 3;
     this.txtMachineName.Text     = "";
     //
     // label1
     //
     this.label1.Location  = new System.Drawing.Point(8, 16);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(88, 20);
     this.label1.TabIndex  = 4;
     this.label1.Text      = "&Machine Name:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label2
     //
     this.label2.Location  = new System.Drawing.Point(8, 48);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(112, 20);
     this.label2.TabIndex  = 5;
     this.label2.Text      = "&Starting Namespace:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // txtStartingNamespace
     //
     this.txtStartingNamespace.Location = new System.Drawing.Point(128, 48);
     this.txtStartingNamespace.Name     = "txtStartingNamespace";
     this.txtStartingNamespace.Size     = new System.Drawing.Size(136, 20);
     this.txtStartingNamespace.TabIndex = 6;
     this.txtStartingNamespace.Text     = "";
     //
     // btnConnect
     //
     this.btnConnect.Location = new System.Drawing.Point(272, 48);
     this.btnConnect.Name     = "btnConnect";
     this.btnConnect.Size     = new System.Drawing.Size(128, 23);
     this.btnConnect.TabIndex = 7;
     this.btnConnect.Text     = "&Connect";
     this.btnConnect.Click   += new System.EventHandler(this.btnConnect_Click);
     //
     // tvwNamespaces
     //
     this.tvwNamespaces.HideSelection = false;
     this.tvwNamespaces.ImageList     = this.imageListNamespaces;
     this.tvwNamespaces.Location      = new System.Drawing.Point(8, 80);
     this.tvwNamespaces.Name          = "tvwNamespaces";
     this.tvwNamespaces.Size          = new System.Drawing.Size(392, 120);
     this.tvwNamespaces.TabIndex      = 8;
     //
     // imageListNamespaces
     //
     this.imageListNamespaces.ImageSize        = new System.Drawing.Size(16, 16);
     this.imageListNamespaces.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListNamespaces.ImageStream")));
     this.imageListNamespaces.TransparentColor = System.Drawing.Color.Transparent;
     //
     // tabOrderManager
     //
     this.tabOrderManager.Control = this;
     //
     // WmiInitialiseForm
     //
     this.AcceptButton      = this.btnOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.btnCancel;
     this.ClientSize        = new System.Drawing.Size(416, 245);
     this.ControlBox        = false;
     this.Controls.Add(this.tvwNamespaces);
     this.Controls.Add(this.btnConnect);
     this.Controls.Add(this.txtStartingNamespace);
     this.Controls.Add(this.txtMachineName);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "WmiInitialiseForm";
     this.Text            = "Browse For Namespace";
     ((System.ComponentModel.ISupportInitialize)(this.tabOrderManager)).EndInit();
     this.ResumeLayout(false);
 }