Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / WizardPanel.cs / 1 / WizardPanel.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; namespace System.Web.UI.Design.WebControls.Util { ////// Represents a single step in a wizard. /// WizardPanels are contained within a single WizardForm. /// internal class WizardPanel : System.Windows.Forms.UserControl { private WizardForm _parentWizard; private string _caption; private WizardPanel _nextPanel; private bool _needsToInvalidate; ////// Creates a new WizardPanel. /// public WizardPanel() { } ////// The caption to be shown on the WizardForm /// public string Caption { get { if (_caption == null) { return String.Empty; } return _caption; } set { _caption = value; if (_parentWizard != null) { _parentWizard.Invalidate(); } else { _needsToInvalidate = true; } } } ////// The panel to go to when the Next button is clicked. This can be set dynamically in /// the OnNext() event to customize the order in which panels are used. /// public WizardPanel NextPanel { get { return _nextPanel; } set { _nextPanel = value; Debug.Assert(_parentWizard != null); if (_parentWizard != null) { _parentWizard.RegisterPanel(_nextPanel); } } } ////// This method is called when the wizard's Finish button is clicked. /// It is called once for each wizard panel on the panel stack, in the order from the first panel to the last (current) panel. /// protected internal virtual void OnComplete() { } ////// Runs when the next button is clicked while this panel is showing. /// Returns true if the wizard should proceed to the next panel. /// public virtual bool OnNext() { return true; } ////// Runs when the previous button of the parent wizard form is clicked while this panel is active /// public virtual void OnPrevious() { } ////// internal void SetParentWizard(WizardForm parent) { _parentWizard = parent; if ((_parentWizard != null) && _needsToInvalidate) { _parentWizard.Invalidate(); _needsToInvalidate = false; } } } } // 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.Diagnostics; using System.Drawing; using System.Windows.Forms; namespace System.Web.UI.Design.WebControls.Util { ////// Represents a single step in a wizard. /// WizardPanels are contained within a single WizardForm. /// internal class WizardPanel : System.Windows.Forms.UserControl { private WizardForm _parentWizard; private string _caption; private WizardPanel _nextPanel; private bool _needsToInvalidate; ////// Creates a new WizardPanel. /// public WizardPanel() { } ////// The caption to be shown on the WizardForm /// public string Caption { get { if (_caption == null) { return String.Empty; } return _caption; } set { _caption = value; if (_parentWizard != null) { _parentWizard.Invalidate(); } else { _needsToInvalidate = true; } } } ////// The panel to go to when the Next button is clicked. This can be set dynamically in /// the OnNext() event to customize the order in which panels are used. /// public WizardPanel NextPanel { get { return _nextPanel; } set { _nextPanel = value; Debug.Assert(_parentWizard != null); if (_parentWizard != null) { _parentWizard.RegisterPanel(_nextPanel); } } } ////// This method is called when the wizard's Finish button is clicked. /// It is called once for each wizard panel on the panel stack, in the order from the first panel to the last (current) panel. /// protected internal virtual void OnComplete() { } ////// Runs when the next button is clicked while this panel is showing. /// Returns true if the wizard should proceed to the next panel. /// public virtual bool OnNext() { return true; } ////// Runs when the previous button of the parent wizard form is clicked while this panel is active /// public virtual void OnPrevious() { } ////// internal void SetParentWizard(WizardForm parent) { _parentWizard = parent; if ((_parentWizard != null) && _needsToInvalidate) { _parentWizard.Invalidate(); _needsToInvalidate = false; } } } } // 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
- Events.cs
- SyndicationElementExtensionCollection.cs
- regiisutil.cs
- GridProviderWrapper.cs
- DesignerProperties.cs
- XmlSerializer.cs
- InteropTrackingRecord.cs
- ADRoleFactory.cs
- BamlCollectionHolder.cs
- Rect3DValueSerializer.cs
- IdnMapping.cs
- HtmlInputButton.cs
- OracleConnectionStringBuilder.cs
- Comparer.cs
- ComUdtElement.cs
- SettingsBindableAttribute.cs
- ListenerConnectionDemuxer.cs
- SqlResolver.cs
- IdentityNotMappedException.cs
- XamlClipboardData.cs
- TripleDES.cs
- TypeUsageBuilder.cs
- Win32Native.cs
- RectangleGeometry.cs
- TakeQueryOptionExpression.cs
- FocusManager.cs
- ParameterBuilder.cs
- CategoryGridEntry.cs
- InputProcessorProfilesLoader.cs
- ProcessHostConfigUtils.cs
- LicenseException.cs
- ErrorFormatter.cs
- SupportingTokenSpecification.cs
- CatalogPartCollection.cs
- XmlBinaryReader.cs
- PackageRelationship.cs
- TextReader.cs
- XPathParser.cs
- ObservableDictionary.cs
- CacheChildrenQuery.cs
- ExpressionPrefixAttribute.cs
- GridViewColumnCollection.cs
- DiscardableAttribute.cs
- EncoderExceptionFallback.cs
- CalendarDayButton.cs
- RegexTypeEditor.cs
- FormViewInsertedEventArgs.cs
- SymDocumentType.cs
- RetrieveVirtualItemEventArgs.cs
- ConfigurationSectionCollection.cs
- SqlRowUpdatedEvent.cs
- PropertyPath.cs
- ClientSettingsStore.cs
- DecoderExceptionFallback.cs
- GeometryValueSerializer.cs
- InstanceOwnerException.cs
- XPathDescendantIterator.cs
- TypeInitializationException.cs
- ConfigurationManagerInternal.cs
- DbConnectionFactory.cs
- SystemDropShadowChrome.cs
- EntityTypeBase.cs
- CodeAttachEventStatement.cs
- DataRowView.cs
- SchemaConstraints.cs
- XmlAttributes.cs
- ToolStripItemBehavior.cs
- ContentIterators.cs
- XmlDictionary.cs
- DataGridViewCellValidatingEventArgs.cs
- CompleteWizardStep.cs
- SecurityUniqueId.cs
- XmlUtil.cs
- DoubleStorage.cs
- TableItemPattern.cs
- DesignTimeValidationFeature.cs
- DataViewListener.cs
- DataSourceControl.cs
- XhtmlBasicPageAdapter.cs
- ToolStripPanelCell.cs
- Emitter.cs
- indexingfiltermarshaler.cs
- SqlDataSourceConfigureSelectPanel.cs
- EnumConverter.cs
- InputScopeNameConverter.cs
- ColorConvertedBitmap.cs
- Menu.cs
- WebHeaderCollection.cs
- GenericUriParser.cs
- WebDescriptionAttribute.cs
- FontInfo.cs
- CombinedGeometry.cs
- XmlSecureResolver.cs
- FlowLayoutSettings.cs
- DataServiceClientException.cs
- StylusButtonCollection.cs
- CompilationRelaxations.cs
- QilPatternFactory.cs
- ToolStripItemTextRenderEventArgs.cs
- EncodingTable.cs