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
- XmlSchemaRedefine.cs
- ConfigurationManagerHelperFactory.cs
- ScriptDescriptor.cs
- HtmlHistory.cs
- Menu.cs
- StylusEventArgs.cs
- AdapterSwitches.cs
- Debug.cs
- QuotedPrintableStream.cs
- IDReferencePropertyAttribute.cs
- SrgsGrammar.cs
- UserNamePasswordValidator.cs
- EventItfInfo.cs
- ScalarOps.cs
- FontFamily.cs
- MsmqIntegrationSecurityMode.cs
- CalloutQueueItem.cs
- ContainsRowNumberChecker.cs
- Byte.cs
- WebPartConnectionsCancelEventArgs.cs
- ImageListStreamer.cs
- PassportAuthentication.cs
- NavigationService.cs
- FlatButtonAppearance.cs
- ListViewDesigner.cs
- CommonProperties.cs
- CodeArgumentReferenceExpression.cs
- CollectionDataContract.cs
- ProviderUtil.cs
- HandlerFactoryCache.cs
- OAVariantLib.cs
- MenuCommand.cs
- KeyboardNavigation.cs
- ArglessEventHandlerProxy.cs
- Debug.cs
- EventHandlerList.cs
- CodeDelegateInvokeExpression.cs
- WebAdminConfigurationHelper.cs
- MessagePropertyVariants.cs
- XsltContext.cs
- control.ime.cs
- ProtectedConfiguration.cs
- Emitter.cs
- Console.cs
- HttpRawResponse.cs
- RelationshipEndMember.cs
- SelectionEditor.cs
- Underline.cs
- ProcessManager.cs
- ConfigurationStrings.cs
- ObjectStateManagerMetadata.cs
- SystemException.cs
- DescriptionAttribute.cs
- Pair.cs
- SessionStateSection.cs
- CodeGenerator.cs
- InvalidMessageContractException.cs
- AvTrace.cs
- TextReader.cs
- InternalDispatchObject.cs
- TypeSystem.cs
- MarkedHighlightComponent.cs
- HostAdapter.cs
- ServicePointManager.cs
- DBDataPermission.cs
- DynamicResourceExtensionConverter.cs
- Size3D.cs
- BinaryReader.cs
- HeaderUtility.cs
- OletxResourceManager.cs
- SqlRecordBuffer.cs
- PageContentCollection.cs
- StylusPointProperties.cs
- RC2.cs
- GenericIdentity.cs
- MexHttpsBindingElement.cs
- ZoneLinkButton.cs
- AssociatedControlConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- MappingModelBuildProvider.cs
- ColumnReorderedEventArgs.cs
- ScriptBehaviorDescriptor.cs
- ModelItemCollectionImpl.cs
- PathSegment.cs
- FlowDocument.cs
- MembershipUser.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ArgumentNullException.cs
- _ListenerResponseStream.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- FrameworkContentElement.cs
- TextRunProperties.cs
- PropertyNames.cs
- WindowsFormsLinkLabel.cs
- DbParameterCollectionHelper.cs
- COM2FontConverter.cs
- TraceInternal.cs
- KeyMatchBuilder.cs
- StylusOverProperty.cs
- ReverseComparer.cs