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
- WindowPattern.cs
- CustomExpression.cs
- StorageAssociationTypeMapping.cs
- ConstraintConverter.cs
- OracleParameterCollection.cs
- CodeCatchClause.cs
- SyndicationDeserializer.cs
- Matrix3DStack.cs
- ApplicationInfo.cs
- PackagePart.cs
- WindowsAuthenticationEventArgs.cs
- AnalyzedTree.cs
- InputQueue.cs
- RuleElement.cs
- SmiEventStream.cs
- HwndSourceKeyboardInputSite.cs
- MimeFormImporter.cs
- ImageCodecInfoPrivate.cs
- ScriptServiceAttribute.cs
- SqlUnionizer.cs
- HttpCachePolicyWrapper.cs
- SvcMapFile.cs
- OdbcConnectionOpen.cs
- HTMLTagNameToTypeMapper.cs
- Stream.cs
- WebPartCatalogAddVerb.cs
- FusionWrap.cs
- PrintPreviewDialog.cs
- __ConsoleStream.cs
- XPathScanner.cs
- DoWorkEventArgs.cs
- Input.cs
- SrgsElementFactoryCompiler.cs
- MinimizableAttributeTypeConverter.cs
- WsdlInspector.cs
- ShapingWorkspace.cs
- PageAsyncTaskManager.cs
- MediaElementAutomationPeer.cs
- Color.cs
- AppAction.cs
- SecurityKeyUsage.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- AudioDeviceOut.cs
- LockCookie.cs
- basenumberconverter.cs
- ProxyElement.cs
- DurableOperationAttribute.cs
- SiteMapNodeItemEventArgs.cs
- figurelengthconverter.cs
- TextRangeProviderWrapper.cs
- ModuleBuilderData.cs
- RequestCacheValidator.cs
- MetadataStore.cs
- DesignerCatalogPartChrome.cs
- AudioException.cs
- ProjectionCamera.cs
- LineBreakRecord.cs
- BitmapEffectInputData.cs
- TcpTransportSecurityElement.cs
- SqlErrorCollection.cs
- PnrpPeerResolver.cs
- SelectionUIHandler.cs
- EntityCollection.cs
- FileLogRecordEnumerator.cs
- XmlUtil.cs
- HttpApplication.cs
- TargetInvocationException.cs
- HostProtectionException.cs
- RtfNavigator.cs
- SpeechEvent.cs
- ImageField.cs
- Message.cs
- ProxyGenerationError.cs
- IISMapPath.cs
- ResourceExpression.cs
- TextShapeableCharacters.cs
- HyperLinkColumn.cs
- PeerPresenceInfo.cs
- PersonalizationProvider.cs
- TableLayoutRowStyleCollection.cs
- ColumnPropertiesGroup.cs
- IISUnsafeMethods.cs
- Trace.cs
- CachingHintValidation.cs
- ModelItemDictionary.cs
- HttpCookie.cs
- RSAOAEPKeyExchangeFormatter.cs
- TaskExtensions.cs
- CssStyleCollection.cs
- login.cs
- CopyNamespacesAction.cs
- Camera.cs
- FullTextState.cs
- FileFormatException.cs
- ComPlusServiceLoader.cs
- CaseKeyBox.xaml.cs
- IApplicationTrustManager.cs
- RelationshipManager.cs
- CodeTypeMember.cs
- TypedColumnHandler.cs