Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / WizardPanel.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContentWrapperAttribute.cs
- Token.cs
- CommandField.cs
- SwitchLevelAttribute.cs
- ThicknessAnimationUsingKeyFrames.cs
- ParsedAttributeCollection.cs
- InertiaExpansionBehavior.cs
- VirtualPath.cs
- CodeTypeDelegate.cs
- ZipIOLocalFileDataDescriptor.cs
- EventItfInfo.cs
- DataServiceExpressionVisitor.cs
- Int32CollectionConverter.cs
- Themes.cs
- RegexStringValidator.cs
- Clipboard.cs
- CacheHelper.cs
- StandardOleMarshalObject.cs
- StylusPlugin.cs
- TextWriterEngine.cs
- RequestCacheEntry.cs
- DBBindings.cs
- FixedTextContainer.cs
- Gdiplus.cs
- HandoffBehavior.cs
- SyndicationItem.cs
- ToolStripDropDownMenu.cs
- RawAppCommandInputReport.cs
- CustomValidator.cs
- RawUIStateInputReport.cs
- OdbcPermission.cs
- MD5CryptoServiceProvider.cs
- PageTrueTypeFont.cs
- DataGridCellAutomationPeer.cs
- DummyDataSource.cs
- IPEndPointCollection.cs
- OpCellTreeNode.cs
- OdbcParameter.cs
- EmbeddedMailObjectsCollection.cs
- GeneralTransformGroup.cs
- GZipUtils.cs
- SweepDirectionValidation.cs
- InvalidCommandTreeException.cs
- PathTooLongException.cs
- ProviderSettingsCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- EntityCommandExecutionException.cs
- UserNameSecurityTokenAuthenticator.cs
- WpfXamlType.cs
- HealthMonitoringSectionHelper.cs
- KeyProperty.cs
- ApplicationCommands.cs
- SecurityCriticalDataForSet.cs
- GenericPrincipal.cs
- ContentFileHelper.cs
- FormatterServices.cs
- ErrorEventArgs.cs
- ArgIterator.cs
- StylusPointProperty.cs
- BrowserInteropHelper.cs
- FrameSecurityDescriptor.cs
- GridViewDeleteEventArgs.cs
- FrameworkRichTextComposition.cs
- DateTimePicker.cs
- webclient.cs
- XamlSerializerUtil.cs
- SharedHttpsTransportManager.cs
- BitmapEffectInput.cs
- ActivityExecutorOperation.cs
- SqlProfileProvider.cs
- BooleanToVisibilityConverter.cs
- CustomCredentialPolicy.cs
- TreeNode.cs
- cache.cs
- TypeConverterHelper.cs
- MaxValueConverter.cs
- TextEditorCopyPaste.cs
- AdPostCacheSubstitution.cs
- OutputCacheSection.cs
- SqlUdtInfo.cs
- GridItem.cs
- PermissionRequestEvidence.cs
- PageAdapter.cs
- DataObjectSettingDataEventArgs.cs
- MemberMemberBinding.cs
- ObfuscateAssemblyAttribute.cs
- MarkupObject.cs
- NativeWindow.cs
- ServiceModelSectionGroup.cs
- CompiledELinqQueryState.cs
- Literal.cs
- altserialization.cs
- PartialList.cs
- QuestionEventArgs.cs
- EventLogEntry.cs
- ModelVisual3D.cs
- UIEndRequest.cs
- path.cs
- ThreadStaticAttribute.cs
- DesignerDataSourceView.cs