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
- PenLineCapValidation.cs
- DrawingBrush.cs
- PackWebRequestFactory.cs
- TextServicesLoader.cs
- ToolBarTray.cs
- HScrollBar.cs
- ProfilePropertySettingsCollection.cs
- InlineUIContainer.cs
- EditorZoneDesigner.cs
- NamespaceInfo.cs
- TCPListener.cs
- SharedHttpsTransportManager.cs
- Rules.cs
- AudioFileOut.cs
- SafeCryptoHandles.cs
- ComboBoxRenderer.cs
- LineGeometry.cs
- Constraint.cs
- ButtonBase.cs
- Transform3DGroup.cs
- LayoutEditorPart.cs
- FlowchartStart.xaml.cs
- NameScopePropertyAttribute.cs
- MemberAccessException.cs
- KnownAssembliesSet.cs
- DeriveBytes.cs
- DataControlHelper.cs
- Comparer.cs
- FileUtil.cs
- EntityParameter.cs
- AnnotationHighlightLayer.cs
- Knowncolors.cs
- cookiecontainer.cs
- ClientUrlResolverWrapper.cs
- XPathItem.cs
- SQLRoleProvider.cs
- OleDbConnectionInternal.cs
- ClientSideQueueItem.cs
- EventLogEntry.cs
- sqlnorm.cs
- DSASignatureDeformatter.cs
- ConnectivityStatus.cs
- DbMetaDataCollectionNames.cs
- InputProviderSite.cs
- OptimalBreakSession.cs
- CodeNamespace.cs
- SqlError.cs
- KeyNotFoundException.cs
- ConnectionPoolRegistry.cs
- NetworkStream.cs
- RawStylusActions.cs
- IPAddressCollection.cs
- BindingSource.cs
- GridViewRowCollection.cs
- ToolStripRendererSwitcher.cs
- OracleInternalConnection.cs
- Itemizer.cs
- webproxy.cs
- WindowsSecurityToken.cs
- InheritablePropertyChangeInfo.cs
- ToolStripSystemRenderer.cs
- CompilerGeneratedAttribute.cs
- SharedConnectionInfo.cs
- DataGridViewColumnCollectionEditor.cs
- ChildrenQuery.cs
- ReflectionUtil.cs
- PointAnimationUsingPath.cs
- StrongNamePublicKeyBlob.cs
- HttpHandlerActionCollection.cs
- CodeArgumentReferenceExpression.cs
- basevalidator.cs
- ToolStripTextBox.cs
- SoapReflector.cs
- SettingsSection.cs
- TagMapCollection.cs
- Drawing.cs
- EntityConnection.cs
- AxisAngleRotation3D.cs
- UntypedNullExpression.cs
- HttpClientCredentialType.cs
- RectKeyFrameCollection.cs
- OdbcConnectionStringbuilder.cs
- CssStyleCollection.cs
- DataSourceControl.cs
- TreeNodeCollection.cs
- RefreshEventArgs.cs
- XmlCharType.cs
- SelectionListComponentEditor.cs
- DataGridBoolColumn.cs
- StorageRoot.cs
- WebPartCatalogAddVerb.cs
- ColumnHeader.cs
- WebZone.cs
- XhtmlBasicLiteralTextAdapter.cs
- DateTimeSerializationSection.cs
- RadialGradientBrush.cs
- ObjectContextServiceProvider.cs
- RtfToken.cs
- HttpResponse.cs
- SettingsContext.cs