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
- TemplateGroupCollection.cs
- BuildResultCache.cs
- ScriptResourceMapping.cs
- SmiMetaData.cs
- ToolStripRenderEventArgs.cs
- MatrixTransform3D.cs
- Rect3D.cs
- PrimitiveSchema.cs
- ExpressionBuilder.cs
- HttpsHostedTransportConfiguration.cs
- CryptoProvider.cs
- SpecialFolderEnumConverter.cs
- AsyncResult.cs
- Dispatcher.cs
- ManagedIStream.cs
- Function.cs
- AssertFilter.cs
- SQLDecimal.cs
- Visual3DCollection.cs
- SQLCharsStorage.cs
- ObjectContextServiceProvider.cs
- AnnotationComponentChooser.cs
- DictionaryMarkupSerializer.cs
- Array.cs
- XmlTextReaderImplHelpers.cs
- Hash.cs
- cookiecollection.cs
- EventMap.cs
- EditableTreeList.cs
- PageAsyncTask.cs
- TextSelectionProcessor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DataDocumentXPathNavigator.cs
- StrokeCollection2.cs
- FontFamily.cs
- ConfigXmlAttribute.cs
- ConfigurationLockCollection.cs
- SubMenuStyle.cs
- ProtocolViolationException.cs
- OracleDataAdapter.cs
- PageEventArgs.cs
- MasterPage.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PartitionResolver.cs
- DataTableCollection.cs
- EntityConnection.cs
- ProvideValueServiceProvider.cs
- ListViewInsertedEventArgs.cs
- CodeValidator.cs
- ContextMarshalException.cs
- CellConstant.cs
- PopupRootAutomationPeer.cs
- LogicalMethodInfo.cs
- RadioButtonBaseAdapter.cs
- EditingScopeUndoUnit.cs
- OperationCanceledException.cs
- PropertyPath.cs
- DataPointer.cs
- SqlTypesSchemaImporter.cs
- ProviderBase.cs
- ImageAnimator.cs
- PeerCollaboration.cs
- Encoder.cs
- DataSysAttribute.cs
- BitSet.cs
- KeyEvent.cs
- HwndTarget.cs
- designeractionlistschangedeventargs.cs
- ConfigurationErrorsException.cs
- LocalizationParserHooks.cs
- SupportingTokenAuthenticatorSpecification.cs
- CriticalHandle.cs
- MulticastDelegate.cs
- BaseResourcesBuildProvider.cs
- ProxyGenerationError.cs
- LostFocusEventManager.cs
- AddingNewEventArgs.cs
- PreviewControlDesigner.cs
- ZipIOExtraFieldElement.cs
- ClassDataContract.cs
- RectAnimationBase.cs
- EnumerableRowCollectionExtensions.cs
- WebPartZoneBase.cs
- Authorization.cs
- SystemIPGlobalStatistics.cs
- GridViewDeletedEventArgs.cs
- WeakReferenceKey.cs
- ClientBuildManagerCallback.cs
- XmlSchemaSimpleType.cs
- HtmlTableRowCollection.cs
- FastPropertyAccessor.cs
- SiteMapNode.cs
- TreeNodeStyle.cs
- BooleanAnimationUsingKeyFrames.cs
- DataGridBeginningEditEventArgs.cs
- MasterPageParser.cs
- TypeBuilderInstantiation.cs
- OrderedDictionary.cs
- CredentialManagerDialog.cs
- TextBoxBase.cs