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
- CryptoApi.cs
- PenThreadPool.cs
- CharacterMetrics.cs
- BehaviorEditorPart.cs
- MenuItem.cs
- PropagatorResult.cs
- OracleException.cs
- GridSplitter.cs
- SortQuery.cs
- WebPartCatalogCloseVerb.cs
- TemplateManager.cs
- ScriptReferenceEventArgs.cs
- PagerSettings.cs
- SeverityFilter.cs
- RectangleConverter.cs
- WebPartUtil.cs
- NavigationWindow.cs
- CheckedPointers.cs
- ValidatorAttribute.cs
- MsmqInputChannel.cs
- PageParserFilter.cs
- DataObject.cs
- Brush.cs
- WebFormDesignerActionService.cs
- HostedHttpContext.cs
- FileUpload.cs
- RequestContext.cs
- AtomEntry.cs
- AppDomainAttributes.cs
- XslVisitor.cs
- EditBehavior.cs
- DefaultAuthorizationContext.cs
- InputLanguageProfileNotifySink.cs
- TouchFrameEventArgs.cs
- RpcResponse.cs
- _ContextAwareResult.cs
- FontWeights.cs
- BevelBitmapEffect.cs
- XmlCharCheckingReader.cs
- ErrorProvider.cs
- BatchParser.cs
- MouseGestureValueSerializer.cs
- PeerEndPoint.cs
- XmlAttributeCollection.cs
- CompositeTypefaceMetrics.cs
- StringAttributeCollection.cs
- HostingPreferredMapPath.cs
- ImageMapEventArgs.cs
- NavigationFailedEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- LocalizableResourceBuilder.cs
- PropertyIdentifier.cs
- DataGridViewImageCell.cs
- AmbiguousMatchException.cs
- BCryptNative.cs
- BindingObserver.cs
- ArrayWithOffset.cs
- DetailsViewDeletedEventArgs.cs
- MULTI_QI.cs
- QueryStringConverter.cs
- Decoder.cs
- TreeBuilderXamlTranslator.cs
- AdCreatedEventArgs.cs
- ExpressionBindingsDialog.cs
- EnumUnknown.cs
- XmlILModule.cs
- ErrorHandler.cs
- CollectionViewProxy.cs
- C14NUtil.cs
- Point3DValueSerializer.cs
- UncommonField.cs
- DataListItemCollection.cs
- UserControl.cs
- documentation.cs
- HostingEnvironment.cs
- DependsOnAttribute.cs
- _OSSOCK.cs
- StatusBar.cs
- XslVisitor.cs
- SystemInfo.cs
- DbConnectionPoolGroupProviderInfo.cs
- JoinCqlBlock.cs
- SQLDoubleStorage.cs
- OpenTypeLayoutCache.cs
- ValueQuery.cs
- RouteUrlExpressionBuilder.cs
- WebHttpSecurityModeHelper.cs
- CodeDomComponentSerializationService.cs
- PathSegment.cs
- PathFigureCollectionConverter.cs
- EventPrivateKey.cs
- DesignParameter.cs
- COM2Enum.cs
- TreeNodeMouseHoverEvent.cs
- InputReport.cs
- ObjectKeyFrameCollection.cs
- RenderDataDrawingContext.cs
- Accessors.cs
- MultipartContentParser.cs
- ProcessModelInfo.cs