Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / TaskFormBase.cs / 1 / TaskFormBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.Design; namespace System.Web.UI.Design.WebControls.Util { ////// Represents a wizard used to guide users through configuration processes. /// internal abstract class TaskFormBase : DesignerForm { private System.Windows.Forms.Panel _taskPanel; private System.Windows.Forms.Label _bottomDividerLabel; private System.Windows.Forms.Panel _headerPanel; private System.Windows.Forms.Label _captionLabel; private System.Windows.Forms.PictureBox _glyphPictureBox; ////// Creates a new TaskForm with a given service provider. /// public TaskFormBase(IServiceProvider serviceProvider) : base(serviceProvider) { InitializeComponent(); InitializeUI(); } protected System.Windows.Forms.Label CaptionLabel { get { return _captionLabel; } } ////// A glyph for the wizard. /// protected void SetGlyph(System.Drawing.Image value) { _glyphPictureBox.Image = value; } protected System.Windows.Forms.Panel TaskPanel { get { return _taskPanel; } } #region Designer generated code ////// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this._taskPanel = new System.Windows.Forms.Panel(); this._bottomDividerLabel = new System.Windows.Forms.Label(); this._captionLabel = new System.Windows.Forms.Label(); this._headerPanel = new System.Windows.Forms.Panel(); this._glyphPictureBox = new System.Windows.Forms.PictureBox(); this._headerPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._glyphPictureBox)).BeginInit(); this.SuspendLayout(); // // _taskPanel // this._taskPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._taskPanel.Location = new System.Drawing.Point(0, 63); this._taskPanel.Name = "_taskPanel"; this._taskPanel.Size = new System.Drawing.Size(528, 319); this._taskPanel.TabIndex = 30; // // _bottomDividerLabel // this._bottomDividerLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._bottomDividerLabel.BackColor = System.Drawing.SystemColors.ControlLightLight; this._bottomDividerLabel.Location = new System.Drawing.Point(0, 382); this._bottomDividerLabel.Name = "_bottomDividerLabel"; this._bottomDividerLabel.Size = new System.Drawing.Size(572, 1); this._bottomDividerLabel.TabIndex = 40; // // _headerPanel // this._headerPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._headerPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; this._headerPanel.Controls.Add(this._glyphPictureBox); this._headerPanel.Controls.Add(this._captionLabel); this._headerPanel.Location = new System.Drawing.Point(0, 0); this._headerPanel.Name = "_headerPanel"; this._headerPanel.Size = new System.Drawing.Size(572, 63); this._headerPanel.TabIndex = 10; // // _glyphPictureBox // this._glyphPictureBox.Location = new System.Drawing.Point(0, 0); this._glyphPictureBox.Name = "_glyphPictureBox"; this._glyphPictureBox.Size = new System.Drawing.Size(65, 63); this._glyphPictureBox.TabIndex = 20; this._glyphPictureBox.TabStop = false; // // _captionLabel // this._captionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._captionLabel.Location = new System.Drawing.Point(71, 17); this._captionLabel.Name = "_captionLabel"; this._captionLabel.Size = new System.Drawing.Size(487, 47); this._captionLabel.TabIndex = 10; // // TaskForm // this.ClientSize = new System.Drawing.Size(530, 423); this.Controls.Add(this._headerPanel); this.Controls.Add(this._bottomDividerLabel); this.Controls.Add(this._taskPanel); this.Name = "TaskForm"; this._headerPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._glyphPictureBox)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion ////// Called after InitializeComponent to perform additional actions that /// are not supported by the designer. /// private void InitializeUI() { UpdateFonts(); } protected override void OnFontChanged(EventArgs e) { base.OnFontChanged(e); UpdateFonts(); } private void UpdateFonts() { _captionLabel.Font = new Font(Font.FontFamily, Font.Size + 2.0f, FontStyle.Bold, Font.Unit); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using System.Windows.Forms.Design; namespace System.Web.UI.Design.WebControls.Util { ////// Represents a wizard used to guide users through configuration processes. /// internal abstract class TaskFormBase : DesignerForm { private System.Windows.Forms.Panel _taskPanel; private System.Windows.Forms.Label _bottomDividerLabel; private System.Windows.Forms.Panel _headerPanel; private System.Windows.Forms.Label _captionLabel; private System.Windows.Forms.PictureBox _glyphPictureBox; ////// Creates a new TaskForm with a given service provider. /// public TaskFormBase(IServiceProvider serviceProvider) : base(serviceProvider) { InitializeComponent(); InitializeUI(); } protected System.Windows.Forms.Label CaptionLabel { get { return _captionLabel; } } ////// A glyph for the wizard. /// protected void SetGlyph(System.Drawing.Image value) { _glyphPictureBox.Image = value; } protected System.Windows.Forms.Panel TaskPanel { get { return _taskPanel; } } #region Designer generated code ////// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this._taskPanel = new System.Windows.Forms.Panel(); this._bottomDividerLabel = new System.Windows.Forms.Label(); this._captionLabel = new System.Windows.Forms.Label(); this._headerPanel = new System.Windows.Forms.Panel(); this._glyphPictureBox = new System.Windows.Forms.PictureBox(); this._headerPanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._glyphPictureBox)).BeginInit(); this.SuspendLayout(); // // _taskPanel // this._taskPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._taskPanel.Location = new System.Drawing.Point(0, 63); this._taskPanel.Name = "_taskPanel"; this._taskPanel.Size = new System.Drawing.Size(528, 319); this._taskPanel.TabIndex = 30; // // _bottomDividerLabel // this._bottomDividerLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._bottomDividerLabel.BackColor = System.Drawing.SystemColors.ControlLightLight; this._bottomDividerLabel.Location = new System.Drawing.Point(0, 382); this._bottomDividerLabel.Name = "_bottomDividerLabel"; this._bottomDividerLabel.Size = new System.Drawing.Size(572, 1); this._bottomDividerLabel.TabIndex = 40; // // _headerPanel // this._headerPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._headerPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; this._headerPanel.Controls.Add(this._glyphPictureBox); this._headerPanel.Controls.Add(this._captionLabel); this._headerPanel.Location = new System.Drawing.Point(0, 0); this._headerPanel.Name = "_headerPanel"; this._headerPanel.Size = new System.Drawing.Size(572, 63); this._headerPanel.TabIndex = 10; // // _glyphPictureBox // this._glyphPictureBox.Location = new System.Drawing.Point(0, 0); this._glyphPictureBox.Name = "_glyphPictureBox"; this._glyphPictureBox.Size = new System.Drawing.Size(65, 63); this._glyphPictureBox.TabIndex = 20; this._glyphPictureBox.TabStop = false; // // _captionLabel // this._captionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this._captionLabel.Location = new System.Drawing.Point(71, 17); this._captionLabel.Name = "_captionLabel"; this._captionLabel.Size = new System.Drawing.Size(487, 47); this._captionLabel.TabIndex = 10; // // TaskForm // this.ClientSize = new System.Drawing.Size(530, 423); this.Controls.Add(this._headerPanel); this.Controls.Add(this._bottomDividerLabel); this.Controls.Add(this._taskPanel); this.Name = "TaskForm"; this._headerPanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._glyphPictureBox)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion ////// Called after InitializeComponent to perform additional actions that /// are not supported by the designer. /// private void InitializeUI() { UpdateFonts(); } protected override void OnFontChanged(EventArgs e) { base.OnFontChanged(e); UpdateFonts(); } private void UpdateFonts() { _captionLabel.Font = new Font(Font.FontFamily, Font.Size + 2.0f, FontStyle.Bold, Font.Unit); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectCloneHelper.cs
- AssociationTypeEmitter.cs
- IgnoreFileBuildProvider.cs
- CompilationLock.cs
- LoginDesignerUtil.cs
- _SingleItemRequestCache.cs
- PromptEventArgs.cs
- ACE.cs
- SimpleColumnProvider.cs
- CodeDOMUtility.cs
- Publisher.cs
- HtmlTableRow.cs
- RoutedEvent.cs
- SudsWriter.cs
- SendingRequestEventArgs.cs
- ValuePattern.cs
- DependencyObject.cs
- CdpEqualityComparer.cs
- ListViewGroupConverter.cs
- TextHidden.cs
- TempEnvironment.cs
- ExecutedRoutedEventArgs.cs
- DataQuery.cs
- DesignTimeHTMLTextWriter.cs
- FileDialogCustomPlacesCollection.cs
- QilParameter.cs
- AspCompat.cs
- PriorityBindingExpression.cs
- TextContainer.cs
- RegexCode.cs
- SessionIDManager.cs
- PackageRelationship.cs
- ControlsConfig.cs
- TableCell.cs
- AppearanceEditorPart.cs
- BindingSourceDesigner.cs
- DictionaryGlobals.cs
- DrawingContextFlattener.cs
- DataBindEngine.cs
- XmlBindingWorker.cs
- ScrollViewer.cs
- ImageFormat.cs
- ColumnClickEvent.cs
- ValidationResult.cs
- XmlUnspecifiedAttribute.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- OletxTransactionManager.cs
- WebPart.cs
- MouseOverProperty.cs
- PrintDialogDesigner.cs
- IPCCacheManager.cs
- ContentDisposition.cs
- FtpCachePolicyElement.cs
- XamlInt32CollectionSerializer.cs
- ToolStripLocationCancelEventArgs.cs
- CachingHintValidation.cs
- Deserializer.cs
- xdrvalidator.cs
- XPathNavigatorReader.cs
- UITypeEditors.cs
- CloudCollection.cs
- TimeSpanValidator.cs
- CodeObjectCreateExpression.cs
- ReflectionHelper.cs
- Barrier.cs
- HtmlHistory.cs
- StylusDownEventArgs.cs
- AnnotationResource.cs
- PasswordDeriveBytes.cs
- NativeMethodsCLR.cs
- MultiBinding.cs
- Type.cs
- xmlsaver.cs
- DodSequenceMerge.cs
- XmlSchemaRedefine.cs
- TcpChannelFactory.cs
- SecurityTokenProvider.cs
- ConfigXmlSignificantWhitespace.cs
- Utils.cs
- WebPartCatalogCloseVerb.cs
- GridItem.cs
- Queue.cs
- CodeAccessPermission.cs
- ContextQuery.cs
- SqlCharStream.cs
- SerializationStore.cs
- TrackingProfileCache.cs
- Material.cs
- ServiceMetadataExtension.cs
- CapabilitiesRule.cs
- XPathNodePointer.cs
- NodeInfo.cs
- MatrixTransform3D.cs
- PageContentAsyncResult.cs
- PrincipalPermission.cs
- NameValueSectionHandler.cs
- VectorCollection.cs
- SafeNativeMethods.cs
- namescope.cs
- MimePart.cs