Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Windows.Forms; using System.Design; ////// /// 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 SR.GetString(SR.RTL) != "RTL_False"; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RelatedPropertyManager.cs
- DocumentSequenceHighlightLayer.cs
- DataSvcMapFileSerializer.cs
- UIElement3D.cs
- TextDecorationCollectionConverter.cs
- SqlWriter.cs
- FileDocument.cs
- ReadOnlyCollection.cs
- TextEffect.cs
- PropertyInformation.cs
- ProcessInputEventArgs.cs
- RowUpdatedEventArgs.cs
- ProofTokenCryptoHandle.cs
- Stacktrace.cs
- recordstate.cs
- XmlSchemaAny.cs
- ContextStaticAttribute.cs
- ZipIOFileItemStream.cs
- Action.cs
- SqlDataSourceConfigureSortForm.cs
- OleDbConnectionFactory.cs
- SerializerWriterEventHandlers.cs
- DesignerAttributeInfo.cs
- HwndSourceParameters.cs
- MarginsConverter.cs
- EventWaitHandle.cs
- ReferenceService.cs
- EntityModelSchemaGenerator.cs
- SizeAnimationClockResource.cs
- ProviderUtil.cs
- WebPartTracker.cs
- DocumentGridContextMenu.cs
- HashSetDebugView.cs
- PropertyTabAttribute.cs
- Triplet.cs
- GeometryCollection.cs
- RootBrowserWindow.cs
- IPAddress.cs
- ApplicationDirectoryMembershipCondition.cs
- XPathNodeHelper.cs
- ProtocolsSection.cs
- JsonFormatWriterGenerator.cs
- WindowHelperService.cs
- WebPartEventArgs.cs
- EnumUnknown.cs
- DocumentPageViewAutomationPeer.cs
- DataGridParentRows.cs
- ConversionValidationRule.cs
- SchemaNotation.cs
- SmtpTransport.cs
- DateTimeOffsetStorage.cs
- StreamFormatter.cs
- ListItemParagraph.cs
- __Filters.cs
- WebPartEditVerb.cs
- ScriptReference.cs
- LazyTextWriterCreator.cs
- ContextMenuStripActionList.cs
- TypeSemantics.cs
- objectquery_tresulttype.cs
- ImportContext.cs
- SecurityToken.cs
- X509PeerCertificateAuthentication.cs
- RC2CryptoServiceProvider.cs
- MemberPathMap.cs
- SrgsSubset.cs
- SecurityRuntime.cs
- DataControlCommands.cs
- BooleanAnimationUsingKeyFrames.cs
- BamlResourceDeserializer.cs
- HttpRawResponse.cs
- LinqDataSourceStatusEventArgs.cs
- PipeStream.cs
- SchemaImporter.cs
- SafeCertificateContext.cs
- OdbcParameter.cs
- SqlCrossApplyToCrossJoin.cs
- SqlTypeConverter.cs
- WinEventWrap.cs
- EncoderNLS.cs
- XmlNodeReader.cs
- PatternMatcher.cs
- ProviderUtil.cs
- PublisherIdentityPermission.cs
- DesignTimeVisibleAttribute.cs
- ToolStripItemCollection.cs
- UnauthorizedWebPart.cs
- XPathAncestorQuery.cs
- SqlStream.cs
- DataObjectAttribute.cs
- SHA512Managed.cs
- SecurityResources.cs
- OrderedDictionaryStateHelper.cs
- IgnorePropertiesAttribute.cs
- CaseStatement.cs
- HttpResponseInternalWrapper.cs
- DragEvent.cs
- InheritanceContextChangedEventManager.cs
- ApplicationDirectoryMembershipCondition.cs
- SqlCrossApplyToCrossJoin.cs