Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.Windows.Forms; ////// /// internal sealed 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
- XPathDocumentBuilder.cs
- QuadraticBezierSegment.cs
- Quad.cs
- Polygon.cs
- DataSourceProvider.cs
- ProxyDataContractResolver.cs
- SafeReadContext.cs
- DPTypeDescriptorContext.cs
- WebPartMenuStyle.cs
- InputBinding.cs
- SmiRecordBuffer.cs
- MexTcpBindingElement.cs
- MissingMemberException.cs
- ElementFactory.cs
- Array.cs
- XmlSchemaSimpleType.cs
- OperationResponse.cs
- Visual3D.cs
- StorageAssociationTypeMapping.cs
- ErrorLog.cs
- RNGCryptoServiceProvider.cs
- ReplacementText.cs
- _WebProxyDataBuilder.cs
- PopupEventArgs.cs
- NameValueCollection.cs
- MulticastOption.cs
- HandleRef.cs
- EndEvent.cs
- WebServicesDescriptionAttribute.cs
- StubHelpers.cs
- XmlTypeAttribute.cs
- Converter.cs
- TransactionScope.cs
- AddInProcess.cs
- ListViewCancelEventArgs.cs
- MultiView.cs
- DesignerVerb.cs
- StructuredTypeEmitter.cs
- LayoutTableCell.cs
- WebPartZone.cs
- _ListenerAsyncResult.cs
- ProxyWebPart.cs
- PropertyGridCommands.cs
- NetStream.cs
- AnyReturnReader.cs
- ClientUrlResolverWrapper.cs
- MemoryPressure.cs
- WebPartsPersonalizationAuthorization.cs
- SequentialUshortCollection.cs
- altserialization.cs
- HttpResponse.cs
- PauseStoryboard.cs
- WebPartCloseVerb.cs
- DataGridViewSortCompareEventArgs.cs
- TimeBoundedCache.cs
- SamlAuthenticationClaimResource.cs
- CryptoStream.cs
- SerializerWriterEventHandlers.cs
- TouchPoint.cs
- InputEventArgs.cs
- WebPartTransformerCollection.cs
- HeaderedItemsControl.cs
- HelpKeywordAttribute.cs
- ConstraintManager.cs
- Property.cs
- CommandField.cs
- DataGridViewControlCollection.cs
- SystemColors.cs
- SrgsRulesCollection.cs
- MbpInfo.cs
- XmlIterators.cs
- GraphicsState.cs
- ResourcePermissionBaseEntry.cs
- NestPullup.cs
- BamlTreeMap.cs
- SmtpClient.cs
- DynamicField.cs
- CodeVariableDeclarationStatement.cs
- TextAdaptor.cs
- WindowsTab.cs
- PowerModeChangedEventArgs.cs
- StyleHelper.cs
- embossbitmapeffect.cs
- SystemException.cs
- HttpModulesSection.cs
- VisualStyleInformation.cs
- HtmlAnchor.cs
- DetailsView.cs
- ClaimComparer.cs
- BindingOperations.cs
- ReturnType.cs
- AssociationSetEnd.cs
- KeyTime.cs
- BooleanToVisibilityConverter.cs
- EntityDataSourceChangingEventArgs.cs
- ActivityExecutor.cs
- WindowsIPAddress.cs
- XamlRtfConverter.cs
- FilterElement.cs
- Configuration.cs