Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- EntityDataSourceStatementEditor.cs
- DateTimeStorage.cs
- StandardBindingReliableSessionElement.cs
- WebBrowsableAttribute.cs
- GeometryConverter.cs
- CoreSwitches.cs
- COM2IDispatchConverter.cs
- ConnectionAcceptor.cs
- WebZone.cs
- SvcMapFile.cs
- HMACMD5.cs
- UidManager.cs
- FileUpload.cs
- ContactManager.cs
- StandardCommands.cs
- KeyPressEvent.cs
- CallContext.cs
- EDesignUtil.cs
- TableChangeProcessor.cs
- Comparer.cs
- IndentedTextWriter.cs
- Menu.cs
- TypefaceCollection.cs
- WebPartConnectionsCancelVerb.cs
- ReturnEventArgs.cs
- Type.cs
- ProcessRequestArgs.cs
- Evidence.cs
- CodeGotoStatement.cs
- Matrix3DValueSerializer.cs
- EntityContainerAssociationSet.cs
- XmlStreamStore.cs
- SerializerProvider.cs
- Page.cs
- CurrentChangingEventArgs.cs
- StyleBamlTreeBuilder.cs
- ActivityCodeDomSerializationManager.cs
- SparseMemoryStream.cs
- DesignerAttribute.cs
- ProfileModule.cs
- MessageRpc.cs
- Rights.cs
- GridEntry.cs
- IisTraceWebEventProvider.cs
- FloaterBaseParagraph.cs
- WithParamAction.cs
- AdornedElementPlaceholder.cs
- PKCS1MaskGenerationMethod.cs
- DataControlCommands.cs
- InvalidCommandTreeException.cs
- DBNull.cs
- HealthMonitoringSectionHelper.cs
- TypeSystem.cs
- PageContentCollection.cs
- RichTextBox.cs
- FlowDocument.cs
- TypeUsage.cs
- ILGenerator.cs
- EncodingInfo.cs
- SQLBinary.cs
- WindowsTokenRoleProvider.cs
- XmlQueryCardinality.cs
- CapabilitiesAssignment.cs
- ipaddressinformationcollection.cs
- WorkflowValidationFailedException.cs
- BinaryWriter.cs
- MultiSelectRootGridEntry.cs
- Win32Interop.cs
- MdiWindowListStrip.cs
- TransformerInfoCollection.cs
- RightNameExpirationInfoPair.cs
- SymmetricCryptoHandle.cs
- EntityParameter.cs
- IApplicationTrustManager.cs
- AlphabeticalEnumConverter.cs
- RoutedEvent.cs
- UserNameSecurityTokenParameters.cs
- FrameworkContentElement.cs
- QueryCacheKey.cs
- SafeNativeMethods.cs
- ObjectItemCollection.cs
- QueryPageSettingsEventArgs.cs
- ThrowHelper.cs
- TypeTypeConverter.cs
- DeclaredTypeValidatorAttribute.cs
- METAHEADER.cs
- EventSinkHelperWriter.cs
- PermissionAttributes.cs
- VScrollBar.cs
- KeyEvent.cs
- EndpointConfigContainer.cs
- ByteStream.cs
- ObjectParameterCollection.cs
- BitmapFrame.cs
- _SslSessionsCache.cs
- QuaternionConverter.cs
- Focus.cs
- PropertyMetadata.cs
- ResourceBinder.cs
- XmlQuerySequence.cs