Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 1305376 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Windows.Forms; using System.Design; namespace System.Web.UI.Design.WebControls { ////// internal static class RTLAwareMessageBox { ////// The Show method displays a message box that can contain text, buttons, and symbols that /// inform and instruct the user. This MessageBox will be RTL, if the resources /// for this dll have been localized to a RTL language. /// ////// public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) { if (RTLAwareMessageBox.IsRTLResources) { options |= (MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading); } return MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options); } ////// Displays a message box with specified text, caption, and style. /// Makes the dialog RTL if the resources for this dll have been localized to a RTL language. /// ////// Tells whether the current resources for this dll have been /// localized for a RTL language. /// public static bool IsRTLResources { get { return Strings.RTL != "RTL_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.Windows.Forms; using System.Design; namespace System.Web.UI.Design.WebControls { ////// internal static class RTLAwareMessageBox { ////// The Show method displays a message box that can contain text, buttons, and symbols that /// inform and instruct the user. This MessageBox will be RTL, if the resources /// for this dll have been localized to a RTL language. /// ////// public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) { if (RTLAwareMessageBox.IsRTLResources) { options |= (MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading); } return MessageBox.Show(owner, text, caption, buttons, icon, defaultButton, options); } ////// Displays a message box with specified text, caption, and style. /// Makes the dialog RTL if the resources for this dll have been localized to a RTL language. /// ////// Tells whether the current resources for this dll have been /// localized for a RTL language. /// public static bool IsRTLResources { get { return Strings.RTL != "RTL_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
- ObjectFactoryCodeDomTreeGenerator.cs
- Separator.cs
- TabItemAutomationPeer.cs
- CryptographicAttribute.cs
- TaskFileService.cs
- ImageAnimator.cs
- IPHostEntry.cs
- CodeExporter.cs
- CheckedListBox.cs
- LogicalCallContext.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- XmlSchemaExternal.cs
- UserControlAutomationPeer.cs
- Sentence.cs
- HttpProfileBase.cs
- ProfileSettings.cs
- GridViewRowCollection.cs
- TransformerTypeCollection.cs
- MetabaseReader.cs
- String.cs
- TextSearch.cs
- XmlSchemaComplexType.cs
- QueryInterceptorAttribute.cs
- BulletDecorator.cs
- EndpointDispatcher.cs
- ICollection.cs
- Registry.cs
- ErrorRuntimeConfig.cs
- PersonalizationStateInfoCollection.cs
- initElementDictionary.cs
- ListViewItemSelectionChangedEvent.cs
- printdlgexmarshaler.cs
- BooleanAnimationUsingKeyFrames.cs
- FormatSettings.cs
- DataGridViewTextBoxEditingControl.cs
- Vector3DValueSerializer.cs
- WebEventCodes.cs
- ObjectHelper.cs
- DataServiceStreamProviderWrapper.cs
- sitestring.cs
- SqlBuffer.cs
- RemoveStoryboard.cs
- MasterPage.cs
- Semaphore.cs
- MultiSelectRootGridEntry.cs
- ProfilePropertySettings.cs
- ContentControl.cs
- CollectionType.cs
- BaseCodePageEncoding.cs
- CapacityStreamGeometryContext.cs
- XmlSchemaSet.cs
- RowCache.cs
- RuntimeIdentifierPropertyAttribute.cs
- DbConnectionFactory.cs
- DataChangedEventManager.cs
- UnsafeNativeMethodsCLR.cs
- UnmanagedBitmapWrapper.cs
- WebPartDisplayModeCollection.cs
- SurrogateChar.cs
- WebRequestModuleElementCollection.cs
- IdnElement.cs
- EpmTargetTree.cs
- DataAccessor.cs
- IgnorePropertiesAttribute.cs
- RemoteWebConfigurationHost.cs
- WebEvents.cs
- TextControlDesigner.cs
- KeyEventArgs.cs
- ListViewItemEventArgs.cs
- ListItemCollection.cs
- XMLDiffLoader.cs
- XmlReader.cs
- SingleAnimationBase.cs
- StaticTextPointer.cs
- BufferAllocator.cs
- MasterPage.cs
- GatewayDefinition.cs
- ReadWriteObjectLock.cs
- ImageIndexEditor.cs
- AssertValidation.cs
- RuleSetDialog.cs
- TimelineGroup.cs
- PolicyException.cs
- GridSplitter.cs
- ListItemsPage.cs
- LifetimeServices.cs
- X509PeerCertificateAuthenticationElement.cs
- ImageAnimator.cs
- SqlDataAdapter.cs
- FrameworkContextData.cs
- ControlCollection.cs
- StateWorkerRequest.cs
- ResourceProperty.cs
- HtmlTableCellCollection.cs
- Compiler.cs
- SettingsPropertyCollection.cs
- TraceSwitch.cs
- SqlServer2KCompatibilityAnnotation.cs
- Object.cs
- EnumerableRowCollectionExtensions.cs