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
- CustomLineCap.cs
- CompModHelpers.cs
- ExpandSegment.cs
- ClientTargetSection.cs
- IntegerFacetDescriptionElement.cs
- BypassElement.cs
- NotCondition.cs
- HttpRequest.cs
- BaseDataBoundControl.cs
- WebPartExportVerb.cs
- CompositeFontParser.cs
- XPathChildIterator.cs
- BasePattern.cs
- DataRecordInfo.cs
- CustomWebEventKey.cs
- Classification.cs
- SessionState.cs
- MessageBox.cs
- TextModifierScope.cs
- ImportRequest.cs
- SafeLocalMemHandle.cs
- ZipPackage.cs
- CodeEntryPointMethod.cs
- FilterableAttribute.cs
- LineProperties.cs
- EDesignUtil.cs
- TraceSource.cs
- Evidence.cs
- ListViewItemSelectionChangedEvent.cs
- ProfileService.cs
- _ListenerRequestStream.cs
- ConfigXmlText.cs
- XsltFunctions.cs
- TogglePatternIdentifiers.cs
- GenericTypeParameterBuilder.cs
- WindowsFormsSectionHandler.cs
- LifetimeServices.cs
- DataGridViewCheckBoxCell.cs
- TextTreeFixupNode.cs
- HitTestWithPointDrawingContextWalker.cs
- FontSource.cs
- GCHandleCookieTable.cs
- ZipQueryOperator.cs
- CodeEventReferenceExpression.cs
- ProgressBarAutomationPeer.cs
- Int32AnimationBase.cs
- Matrix3DConverter.cs
- SqlCacheDependency.cs
- TextWriterTraceListener.cs
- Compensate.cs
- ClientFactory.cs
- InputLangChangeRequestEvent.cs
- SystemIPInterfaceProperties.cs
- PropertyCondition.cs
- SerialReceived.cs
- TabControlCancelEvent.cs
- Root.cs
- Span.cs
- DbBuffer.cs
- Assert.cs
- SqlGenerator.cs
- CompoundFileIOPermission.cs
- WhitespaceSignificantCollectionAttribute.cs
- BulletChrome.cs
- OdbcConnectionFactory.cs
- XPathNodeList.cs
- DataGridViewCellMouseEventArgs.cs
- ClientData.cs
- TemplateControl.cs
- SettingsSavedEventArgs.cs
- DataContractSerializer.cs
- KeyboardEventArgs.cs
- InvalidFilterCriteriaException.cs
- Asn1IntegerConverter.cs
- DeviceSpecificChoice.cs
- ListenerConstants.cs
- OneOfTypeConst.cs
- FixedTextSelectionProcessor.cs
- Function.cs
- DataTransferEventArgs.cs
- AuthorizationContext.cs
- ScriptResourceHandler.cs
- DataBinding.cs
- ExpandoObject.cs
- FixedSOMTableRow.cs
- ContentPlaceHolder.cs
- MemoryMappedView.cs
- DoubleIndependentAnimationStorage.cs
- WebHeaderCollection.cs
- CodeIdentifiers.cs
- HTTPNotFoundHandler.cs
- UnaryNode.cs
- PackageDigitalSignature.cs
- SqlCacheDependencySection.cs
- RadioButtonStandardAdapter.cs
- Focus.cs
- UnknownBitmapEncoder.cs
- DataKeyPropertyAttribute.cs
- TextParagraphCache.cs
- ControlAdapter.cs