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
- FormsAuthenticationUserCollection.cs
- DependencyStoreSurrogate.cs
- InputProcessorProfilesLoader.cs
- DesignerTransactionCloseEvent.cs
- InvokeProviderWrapper.cs
- ParagraphVisual.cs
- DataGridViewColumnEventArgs.cs
- PolicyLevel.cs
- BuilderInfo.cs
- KeysConverter.cs
- DocumentsTrace.cs
- DesignerActionHeaderItem.cs
- ConcatQueryOperator.cs
- HostingPreferredMapPath.cs
- HttpCapabilitiesBase.cs
- BitmapEffectDrawingContent.cs
- SoapSchemaMember.cs
- ByeMessage11.cs
- TreeChangeInfo.cs
- TableAutomationPeer.cs
- NullableDecimalAverageAggregationOperator.cs
- XPathEmptyIterator.cs
- EmptyCollection.cs
- WeakReferenceEnumerator.cs
- LogManagementAsyncResult.cs
- XmlReflectionMember.cs
- CacheSection.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DecoderBestFitFallback.cs
- PeerNameRecord.cs
- ObjectTag.cs
- MSHTMLHost.cs
- RuntimeConfigLKG.cs
- ScriptComponentDescriptor.cs
- ProviderConnectionPointCollection.cs
- WsdlBuildProvider.cs
- IndexedGlyphRun.cs
- FilteredXmlReader.cs
- BasicViewGenerator.cs
- EntryIndex.cs
- CoreSwitches.cs
- EntityViewContainer.cs
- HttpClientChannel.cs
- ToolStripDropDownButton.cs
- EventLog.cs
- bindurihelper.cs
- TopClause.cs
- OpacityConverter.cs
- Point.cs
- SiteMapNodeItemEventArgs.cs
- Rectangle.cs
- FlowLayoutPanel.cs
- Rect3D.cs
- ValueChangedEventManager.cs
- XmlSubtreeReader.cs
- GlyphRunDrawing.cs
- LinearGradientBrush.cs
- DiagnosticEventProvider.cs
- StringTraceRecord.cs
- ApplicationInfo.cs
- Rect3D.cs
- AssemblyBuilder.cs
- ZoneButton.cs
- StretchValidation.cs
- TypeUtil.cs
- Paragraph.cs
- InstanceCreationEditor.cs
- OletxCommittableTransaction.cs
- TypeResolvingOptions.cs
- InputReport.cs
- StringArrayConverter.cs
- AppDomainManager.cs
- SByteStorage.cs
- PropertyContainer.cs
- PageOutputColor.cs
- ProtocolsConfigurationEntry.cs
- HtmlTableCell.cs
- TextPenaltyModule.cs
- NetworkInformationException.cs
- KeysConverter.cs
- MultiTargetingUtil.cs
- WebResourceUtil.cs
- MultiSelectRootGridEntry.cs
- VectorCollectionConverter.cs
- CharKeyFrameCollection.cs
- CancelEventArgs.cs
- SBCSCodePageEncoding.cs
- ZipIOCentralDirectoryFileHeader.cs
- ScaleTransform3D.cs
- RectValueSerializer.cs
- DataRelationPropertyDescriptor.cs
- InternalsVisibleToAttribute.cs
- StreamInfo.cs
- CompressedStack.cs
- WebPartTransformer.cs
- TraceHwndHost.cs
- FacetDescription.cs
- DataBoundControlAdapter.cs
- TokenDescriptor.cs
- EntryIndex.cs