Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- /* */ 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
- RemotingServices.cs
- SqlUserDefinedAggregateAttribute.cs
- TraceHandler.cs
- XPathMultyIterator.cs
- Rotation3D.cs
- GeneralTransform.cs
- KerberosRequestorSecurityToken.cs
- TransformGroup.cs
- SpnEndpointIdentityExtension.cs
- HttpHandlersSection.cs
- AsymmetricKeyExchangeDeformatter.cs
- nulltextcontainer.cs
- AmbiguousMatchException.cs
- ToolStripTemplateNode.cs
- Int64Animation.cs
- ConnectionStringSettings.cs
- BookmarkEventArgs.cs
- DrawToolTipEventArgs.cs
- RoleManagerModule.cs
- NativeObjectSecurity.cs
- ProcessProtocolHandler.cs
- ScopelessEnumAttribute.cs
- IndexedString.cs
- MenuItemStyle.cs
- RectangleHotSpot.cs
- Convert.cs
- TransactionContextManager.cs
- ArcSegment.cs
- WebPartDisplayModeEventArgs.cs
- CodeIdentifiers.cs
- RawMouseInputReport.cs
- UrlPath.cs
- HitTestWithGeometryDrawingContextWalker.cs
- _LoggingObject.cs
- ProfileService.cs
- XmlDataSourceNodeDescriptor.cs
- FileUtil.cs
- RemotingAttributes.cs
- InputBinder.cs
- InsufficientMemoryException.cs
- DescendantQuery.cs
- ThrowHelper.cs
- CounterCreationData.cs
- RadioButtonBaseAdapter.cs
- MappingModelBuildProvider.cs
- PartialTrustVisibleAssemblyCollection.cs
- CommandEventArgs.cs
- _KerberosClient.cs
- HwndProxyElementProvider.cs
- PassportAuthentication.cs
- ContextStaticAttribute.cs
- TrackPoint.cs
- VoiceInfo.cs
- DataGridViewButtonCell.cs
- Adorner.cs
- CatalogZone.cs
- EdmValidator.cs
- MobileErrorInfo.cs
- SoapAttributes.cs
- CopyNamespacesAction.cs
- CfgArc.cs
- Dispatcher.cs
- XPathPatternParser.cs
- AttachedAnnotation.cs
- RequestBringIntoViewEventArgs.cs
- DataTrigger.cs
- DetailsViewPageEventArgs.cs
- DynamicQueryableWrapper.cs
- ParallelTimeline.cs
- TabletCollection.cs
- SystemIPv4InterfaceProperties.cs
- SymmetricAlgorithm.cs
- DynamicQueryableWrapper.cs
- CodeMemberMethod.cs
- XmlAttributeProperties.cs
- NameValueConfigurationCollection.cs
- ChangeDirector.cs
- NavigationExpr.cs
- CompositionTarget.cs
- HttpConfigurationSystem.cs
- HostedBindingBehavior.cs
- TickBar.cs
- versioninfo.cs
- DataRowExtensions.cs
- TouchEventArgs.cs
- SerializationInfo.cs
- AuthenticationService.cs
- TypeUtil.cs
- XmlSchemaException.cs
- DSASignatureDeformatter.cs
- VScrollBar.cs
- WebPartConnectionsCloseVerb.cs
- NullableFloatSumAggregationOperator.cs
- EventLogPermission.cs
- ConnectionStringSettings.cs
- DomainUpDown.cs
- HttpResponseInternalWrapper.cs
- SQLMembershipProvider.cs
- _Semaphore.cs
- RequestCache.cs