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
- OleDbPermission.cs
- GACIdentityPermission.cs
- SingleTagSectionHandler.cs
- ReadOnlyState.cs
- XmlSchemaObjectTable.cs
- XmlNodeChangedEventManager.cs
- Annotation.cs
- TextBoxRenderer.cs
- TextCompositionManager.cs
- WebPartEditorApplyVerb.cs
- PointAnimation.cs
- PtsCache.cs
- CodeTypeReferenceSerializer.cs
- Effect.cs
- WindowsSysHeader.cs
- PathFigureCollectionConverter.cs
- BasicExpandProvider.cs
- Missing.cs
- Soap.cs
- FastEncoder.cs
- ResourceDictionary.cs
- CurrencyManager.cs
- SQLInt32.cs
- BuildProvider.cs
- AssemblyCollection.cs
- RunWorkerCompletedEventArgs.cs
- XmlDictionaryReaderQuotasElement.cs
- TypeNameHelper.cs
- RelationshipEndCollection.cs
- SafeBitVector32.cs
- WebAdminConfigurationHelper.cs
- ThreadStartException.cs
- MouseWheelEventArgs.cs
- APCustomTypeDescriptor.cs
- RegisteredExpandoAttribute.cs
- SqlStream.cs
- KeyInterop.cs
- SlotInfo.cs
- EventSinkActivityDesigner.cs
- UnconditionalPolicy.cs
- GridViewColumnHeaderAutomationPeer.cs
- ScaleTransform.cs
- ConnectionManagementSection.cs
- MappingSource.cs
- COM2Properties.cs
- Stylesheet.cs
- SafeBitVector32.cs
- PathSegment.cs
- WebPartManager.cs
- AsnEncodedData.cs
- ModifiableIteratorCollection.cs
- WebServiceEnumData.cs
- RtfToken.cs
- Array.cs
- localization.cs
- FlowDocumentReader.cs
- ResourceAssociationSet.cs
- XmlArrayItemAttribute.cs
- DbProviderFactories.cs
- ExpandButtonVisibilityConverter.cs
- NamedObject.cs
- SystemEvents.cs
- Rfc2898DeriveBytes.cs
- LinqDataSourceHelper.cs
- DataGridViewHeaderCell.cs
- CopyNodeSetAction.cs
- OrderedHashRepartitionEnumerator.cs
- WebServiceMethodData.cs
- WmiInstallComponent.cs
- ApplicationException.cs
- SegmentInfo.cs
- ActiveDocumentEvent.cs
- Run.cs
- AQNBuilder.cs
- WindowsStatusBar.cs
- ServiceContractListItemList.cs
- PrimitiveType.cs
- Int32Rect.cs
- MainMenu.cs
- WindowsTab.cs
- DelimitedListTraceListener.cs
- DirtyTextRange.cs
- TypeElement.cs
- Vector3DCollectionConverter.cs
- ThicknessAnimationBase.cs
- DeflateStream.cs
- ConstantProjectedSlot.cs
- CultureInfoConverter.cs
- X509ChainElement.cs
- InputReport.cs
- BrowserCapabilitiesCodeGenerator.cs
- Message.cs
- ClonableStack.cs
- ContractInstanceProvider.cs
- OleCmdHelper.cs
- TypePropertyEditor.cs
- UrlPath.cs
- precedingquery.cs
- SQLInt32Storage.cs
- IriParsingElement.cs