private void AddProperty(TagsStorage tagsStorage) { ToolsWindowsTagsParams toolsWindowsTagsParams = new ToolsWindowsTagsParams(); toolsWindowsTagsParams.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); toolsWindowsTagsParams.DownControl = null; toolsWindowsTagsParams.Location = new System.Drawing.Point(10, 5); toolsWindowsTagsParams.Name = tagsStorage.DisplayText; toolsWindowsTagsParams.ParentControl = null; toolsWindowsTagsParams.Size = new System.Drawing.Size(553, 30); toolsWindowsTagsParams.TabIndex = 1; toolsWindowsTagsParams.PropertyName = UppercaseFirst(tagsStorage.Name); toolsWindowsTagsParams.PropertyText = ""; // save reference to tagsStorage object toolsWindowsTagsParams.Tag = tagsStorage; // add upControl if (lastAdded_ToolsWindowsTagsParams != null) { toolsWindowsTagsParams.UpControl = (ToolsWindowsTagsParams)lastAdded_ToolsWindowsTagsParams; } this.pPropertyBox.Controls.Add(toolsWindowsTagsParams); // bound hoveringWindows to control howeringWindow.AddControl(toolsWindowsTagsParams.tbText); lastAdded_ToolsWindowsTagsParams = toolsWindowsTagsParams; }
private void AddProperty(TagsStorage tagsStorage) { ToolsWindowsTagsParams toolsWindowsTagsParams = new ToolsWindowsTagsParams(); toolsWindowsTagsParams.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); toolsWindowsTagsParams.DownControl = null; toolsWindowsTagsParams.Location = new System.Drawing.Point(10, 5); toolsWindowsTagsParams.Name = tagsStorage.DisplayText; toolsWindowsTagsParams.ParentControl = null; toolsWindowsTagsParams.Size = new System.Drawing.Size(553, 30); toolsWindowsTagsParams.TabIndex = 1; toolsWindowsTagsParams.PropertyName = UppercaseFirst(tagsStorage.Name); toolsWindowsTagsParams.PropertyText = ""; // save reference to tagsStorage object toolsWindowsTagsParams.Tag = tagsStorage; // add upControl if (lastAdded_ToolsWindowsTagsParams != null) { toolsWindowsTagsParams.UpControl = (ToolsWindowsTagsParams)lastAdded_ToolsWindowsTagsParams; } this.pPropertyBox.Controls.Add(toolsWindowsTagsParams); // bound hoveringWindows to control howeringWindow.AddControl(toolsWindowsTagsParams.tbText); lastAdded_ToolsWindowsTagsParams = toolsWindowsTagsParams; }