Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputScopeNameConverter.cs
- ScrollPatternIdentifiers.cs
- DoubleLink.cs
- OutputCacheProfile.cs
- ZipIORawDataFileBlock.cs
- ColumnCollection.cs
- SessionSwitchEventArgs.cs
- SpeechSeg.cs
- CqlGenerator.cs
- GraphicsPathIterator.cs
- SynchronousChannelMergeEnumerator.cs
- BigInt.cs
- JournalEntryListConverter.cs
- ConfigurationManagerHelper.cs
- XmlBinaryWriter.cs
- AdministrationHelpers.cs
- MarkerProperties.cs
- EntityCollection.cs
- ResourceAssociationTypeEnd.cs
- LinqDataSourceDisposeEventArgs.cs
- LayeredChannelListener.cs
- ExtensionQuery.cs
- Label.cs
- XpsS0ValidatingLoader.cs
- PlacementWorkspace.cs
- XmlReturnWriter.cs
- ApplicationTrust.cs
- TemplateKeyConverter.cs
- MimeObjectFactory.cs
- XmlReaderSettings.cs
- CompressedStack.cs
- ObsoleteAttribute.cs
- BitmapEffectGroup.cs
- CommandDevice.cs
- UICuesEvent.cs
- GeneralTransform3DGroup.cs
- SessionParameter.cs
- Polyline.cs
- ChtmlTextBoxAdapter.cs
- HttpHostedTransportConfiguration.cs
- BlurBitmapEffect.cs
- IndexerNameAttribute.cs
- SessionStateItemCollection.cs
- SerializationObjectManager.cs
- Thickness.cs
- UserPreferenceChangedEventArgs.cs
- NamespaceDisplayAutomationPeer.cs
- ApplicationManager.cs
- InkCollectionBehavior.cs
- Rules.cs
- ProcessInputEventArgs.cs
- PrintPreviewDialog.cs
- OperationAbortedException.cs
- DateTimeFormat.cs
- CounterCreationDataConverter.cs
- ResXResourceReader.cs
- ThrowHelper.cs
- DrawingCollection.cs
- StopStoryboard.cs
- RemoteWebConfigurationHostServer.cs
- SynchronizedRandom.cs
- DataStorage.cs
- WebPartConnectionsConfigureVerb.cs
- WSTrustDec2005.cs
- CodeCommentStatement.cs
- CompilationUtil.cs
- OleDbCommandBuilder.cs
- TargetControlTypeAttribute.cs
- ObjectConverter.cs
- Delay.cs
- AbstractSvcMapFileLoader.cs
- BypassElementCollection.cs
- OutputWindow.cs
- Label.cs
- ComponentTray.cs
- ListDictionary.cs
- HideDisabledControlAdapter.cs
- HttpServerProtocol.cs
- NavigationWindowAutomationPeer.cs
- ParameterExpression.cs
- Exceptions.cs
- ProtectedProviderSettings.cs
- GenericEnumConverter.cs
- GridViewItemAutomationPeer.cs
- XmlSchemaComplexContent.cs
- ObjectContext.cs
- DiagnosticTraceSource.cs
- ItemCheckEvent.cs
- FixedLineResult.cs
- UniqueEventHelper.cs
- SqlCachedBuffer.cs
- SqlDataSourceStatusEventArgs.cs
- DataServiceExpressionVisitor.cs
- _PooledStream.cs
- BuilderPropertyEntry.cs
- RowUpdatingEventArgs.cs
- ListView.cs
- CompositeDataBoundControl.cs
- FontUnitConverter.cs
- BitConverter.cs