Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 1305376 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Windows.Forms; using System.Design; namespace System.Web.UI.Design.WebControls { ////// 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 Strings.RTL != "RTL_False"; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataPropertyAttribute.cs
- DoubleLinkListEnumerator.cs
- DynamicExpression.cs
- SystemWebCachingSectionGroup.cs
- XmlNamespaceManager.cs
- Visitors.cs
- FixedFlowMap.cs
- PropertyDescriptor.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- GridProviderWrapper.cs
- IFlowDocumentViewer.cs
- LinkButton.cs
- RemoveStoryboard.cs
- Annotation.cs
- ByteKeyFrameCollection.cs
- ISO2022Encoding.cs
- VisualBasicHelper.cs
- ImageSource.cs
- TracedNativeMethods.cs
- XpsS0ValidatingLoader.cs
- Transform3DCollection.cs
- XmlNodeList.cs
- CopyEncoder.cs
- EventlogProvider.cs
- LinkedResource.cs
- DropDownButton.cs
- ping.cs
- WebPermission.cs
- RoutedEventConverter.cs
- AlphabeticalEnumConverter.cs
- ListParaClient.cs
- FormViewDesigner.cs
- BypassElementCollection.cs
- StylusDevice.cs
- TreeViewCancelEvent.cs
- DrawItemEvent.cs
- ShaderEffect.cs
- ManagementEventArgs.cs
- Stylesheet.cs
- FontSizeConverter.cs
- CodeVariableDeclarationStatement.cs
- MachineKeyConverter.cs
- TypeElementCollection.cs
- CustomErrorsSection.cs
- CardSpaceShim.cs
- SurrogateDataContract.cs
- TypedTableBase.cs
- ColorConverter.cs
- DescendantBaseQuery.cs
- TagMapCollection.cs
- SurrogateEncoder.cs
- DebugView.cs
- ControlIdConverter.cs
- CrossAppDomainChannel.cs
- ObjectStateManagerMetadata.cs
- ClientRuntimeConfig.cs
- GenericXmlSecurityToken.cs
- SchemaLookupTable.cs
- URLString.cs
- DocumentSequenceHighlightLayer.cs
- ImageFormat.cs
- UmAlQuraCalendar.cs
- GlyphingCache.cs
- NativeMethods.cs
- WhitespaceRule.cs
- StringReader.cs
- SqlError.cs
- TabControlEvent.cs
- VolatileResourceManager.cs
- EventHandlers.cs
- WebPartConnectionsConfigureVerb.cs
- ConfigurationConverterBase.cs
- List.cs
- AttachedProperty.cs
- __Filters.cs
- EventTrigger.cs
- GlobalItem.cs
- BlockExpression.cs
- KnownTypeAttribute.cs
- HandleExceptionArgs.cs
- MethodExecutor.cs
- WorkflowInstanceExtensionManager.cs
- XmlSchemaInclude.cs
- Annotation.cs
- FontResourceCache.cs
- FlowDecisionLabelFeature.cs
- _CommandStream.cs
- ParallelActivityDesigner.cs
- DocumentSequence.cs
- XmlQueryOutput.cs
- UInt64Storage.cs
- MainMenu.cs
- ContextStaticAttribute.cs
- TableLayoutColumnStyleCollection.cs
- BulletedListEventArgs.cs
- BindingContext.cs
- TrackingQuery.cs
- ChannelFactoryRefCache.cs
- CodeStatementCollection.cs
- WeakEventManager.cs