Code:
/ DotNET / DotNET / 8.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
- Padding.cs
- PathStreamGeometryContext.cs
- CryptoConfig.cs
- TreeView.cs
- Peer.cs
- ReadWriteObjectLock.cs
- CheckoutException.cs
- CacheOutputQuery.cs
- ScriptComponentDescriptor.cs
- EditorZone.cs
- DeclarativeConditionsCollection.cs
- SvcMapFileSerializer.cs
- XamlSerializer.cs
- TextFragmentEngine.cs
- Substitution.cs
- SymLanguageVendor.cs
- PackageRelationshipCollection.cs
- CmsUtils.cs
- DataObjectPastingEventArgs.cs
- TextTreeTextNode.cs
- PropertyInformation.cs
- ChainOfResponsibility.cs
- ElementHostPropertyMap.cs
- SiteMapNodeCollection.cs
- PeerNameRecordCollection.cs
- DataGridRowEventArgs.cs
- EntityObject.cs
- KnownTypeAttribute.cs
- SqlConnectionStringBuilder.cs
- ResourceDescriptionAttribute.cs
- TransformedBitmap.cs
- TimeSpanStorage.cs
- EventLogPermissionAttribute.cs
- LocalizableAttribute.cs
- WebBrowserBase.cs
- TypedRowHandler.cs
- KeySpline.cs
- ZipIOFileItemStream.cs
- XmlQualifiedName.cs
- BasicHttpSecurityElement.cs
- HttpPostedFile.cs
- TraceHandlerErrorFormatter.cs
- QilPatternVisitor.cs
- QueryPageSettingsEventArgs.cs
- ContentValidator.cs
- MenuItemBinding.cs
- Metafile.cs
- SafePEFileHandle.cs
- OleDbConnectionInternal.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- nulltextnavigator.cs
- IndexerHelper.cs
- TaskFactory.cs
- HuffmanTree.cs
- InvokeProviderWrapper.cs
- WebPartZoneBase.cs
- XmlNodeList.cs
- ProvidePropertyAttribute.cs
- VariableDesigner.xaml.cs
- _DynamicWinsockMethods.cs
- ObfuscateAssemblyAttribute.cs
- ChannelCacheDefaults.cs
- SqlErrorCollection.cs
- WebBrowserUriTypeConverter.cs
- SafeRightsManagementPubHandle.cs
- StructuredProperty.cs
- MessageQueueCriteria.cs
- Opcode.cs
- GeneralTransform3DTo2DTo3D.cs
- UxThemeWrapper.cs
- RemotingSurrogateSelector.cs
- AccessDataSource.cs
- GetPageCompletedEventArgs.cs
- UserControl.cs
- CryptoKeySecurity.cs
- FlowLayoutPanel.cs
- PrintDocument.cs
- Misc.cs
- ReversePositionQuery.cs
- Model3DGroup.cs
- InvariantComparer.cs
- JsonClassDataContract.cs
- MSAAWinEventWrap.cs
- ExpressionHelper.cs
- uribuilder.cs
- Unit.cs
- WebServiceData.cs
- TimeIntervalCollection.cs
- ImageListUtils.cs
- MouseButton.cs
- UnsafeNativeMethods.cs
- CodePropertyReferenceExpression.cs
- PrimitiveXmlSerializers.cs
- DemultiplexingClientMessageFormatter.cs
- LoginName.cs
- ThousandthOfEmRealPoints.cs
- WebBrowserSiteBase.cs
- XmlSchemaSubstitutionGroup.cs
- Guid.cs
- SHA256.cs