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
- TargetConverter.cs
- ContentFileHelper.cs
- XmlQueryType.cs
- PassportPrincipal.cs
- SystemNetworkInterface.cs
- XPathItem.cs
- DataGridViewRowsAddedEventArgs.cs
- TransactionWaitAsyncResult.cs
- ObjectPropertyMapping.cs
- DataGridRowAutomationPeer.cs
- BitmapEffectInputData.cs
- SynchronizedDispatch.cs
- EmptyStringExpandableObjectConverter.cs
- MetadataItemEmitter.cs
- ItemsControl.cs
- BookmarkUndoUnit.cs
- TemplateInstanceAttribute.cs
- PointCollection.cs
- RegexNode.cs
- HTTPNotFoundHandler.cs
- RegexCompilationInfo.cs
- ZipIOExtraField.cs
- SystemNetworkInterface.cs
- TimeSpanConverter.cs
- PointHitTestParameters.cs
- XmlSchemaType.cs
- COAUTHINFO.cs
- SoapEnumAttribute.cs
- XmlAnyElementAttribute.cs
- PrePrepareMethodAttribute.cs
- CharacterShapingProperties.cs
- TypeToStringValueConverter.cs
- ComPlusServiceLoader.cs
- ColorMatrix.cs
- RoleBoolean.cs
- DropShadowEffect.cs
- ServiceOperation.cs
- UrlAuthorizationModule.cs
- SafeNativeMethods.cs
- OdbcConnectionPoolProviderInfo.cs
- CustomTrackingRecord.cs
- CategoryGridEntry.cs
- SafeHandles.cs
- TraceRecord.cs
- FrameworkContentElement.cs
- Font.cs
- AudioFileOut.cs
- SqlOuterApplyReducer.cs
- DeferrableContentConverter.cs
- ErrorFormatterPage.cs
- GridToolTip.cs
- NonceCache.cs
- LightweightCodeGenerator.cs
- ToolStripScrollButton.cs
- __ConsoleStream.cs
- ASCIIEncoding.cs
- PathTooLongException.cs
- AppDomainEvidenceFactory.cs
- DbLambda.cs
- MD5.cs
- WindowsAuthenticationEventArgs.cs
- DiscoveryExceptionDictionary.cs
- RootDesignerSerializerAttribute.cs
- oledbmetadatacolumnnames.cs
- NetworkInformationException.cs
- XPathBuilder.cs
- FixedSOMTableRow.cs
- SafeFileMappingHandle.cs
- GetBrowserTokenRequest.cs
- XmlLanguageConverter.cs
- _ShellExpression.cs
- NativeMethods.cs
- ZipIOExtraField.cs
- UICuesEvent.cs
- XmlSerializationReader.cs
- MasterPageBuildProvider.cs
- PipeStream.cs
- IntegrationExceptionEventArgs.cs
- WarningException.cs
- AuthenticationManager.cs
- ValidationError.cs
- FusionWrap.cs
- PropertySegmentSerializationProvider.cs
- BaseTemplatedMobileComponentEditor.cs
- MissingManifestResourceException.cs
- WebPartHelpVerb.cs
- SafeSecurityHandles.cs
- MemoryRecordBuffer.cs
- SqlColumnizer.cs
- ParameterCollection.cs
- FeatureSupport.cs
- SecurityUniqueId.cs
- ToolStripPanelRenderEventArgs.cs
- RecognitionEventArgs.cs
- XmlDataSourceDesigner.cs
- ReferenceSchema.cs
- FileDetails.cs
- StaticFileHandler.cs
- Types.cs
- TemplateEditingFrame.cs