Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- storepermission.cs
- HttpModuleAction.cs
- CodeNamespace.cs
- SQLDoubleStorage.cs
- BindingObserver.cs
- ReadOnlyDataSourceView.cs
- HostSecurityManager.cs
- ItemContainerPattern.cs
- StatusBar.cs
- Util.cs
- TraceEventCache.cs
- ConnectorRouter.cs
- Header.cs
- SystemIcmpV6Statistics.cs
- EventToken.cs
- XmlObjectSerializerReadContext.cs
- DateTimeOffsetStorage.cs
- SoapElementAttribute.cs
- OutputCacheModule.cs
- MultiViewDesigner.cs
- BuildManagerHost.cs
- DataGridViewBindingCompleteEventArgs.cs
- PassportIdentity.cs
- DesignerCategoryAttribute.cs
- Matrix.cs
- TimeEnumHelper.cs
- SmtpClient.cs
- BevelBitmapEffect.cs
- ZipIOCentralDirectoryBlock.cs
- ServerValidateEventArgs.cs
- SynchronousChannelMergeEnumerator.cs
- GridViewUpdatedEventArgs.cs
- CodeObjectCreateExpression.cs
- DataError.cs
- NetCodeGroup.cs
- Model3DCollection.cs
- CapabilitiesRule.cs
- CodeDelegateInvokeExpression.cs
- InputLangChangeEvent.cs
- Lock.cs
- PeerUnsafeNativeCryptMethods.cs
- TaskFileService.cs
- StrongNameMembershipCondition.cs
- Int64KeyFrameCollection.cs
- HttpModuleCollection.cs
- CodeSnippetCompileUnit.cs
- LogConverter.cs
- HttpRequestTraceRecord.cs
- InvalidAsynchronousStateException.cs
- OleDbCommand.cs
- PolicyStatement.cs
- DefaultValueConverter.cs
- CharacterMetricsDictionary.cs
- HasCopySemanticsAttribute.cs
- ImageUrlEditor.cs
- ServerValidateEventArgs.cs
- RenderData.cs
- HandlerMappingMemo.cs
- HttpWebResponse.cs
- PageFunction.cs
- ExtensionQuery.cs
- serverconfig.cs
- X509CertificateClaimSet.cs
- CompareInfo.cs
- BamlBinaryWriter.cs
- LocalFileSettingsProvider.cs
- EtwTrace.cs
- XPathNode.cs
- ClientBuildManagerCallback.cs
- PointLight.cs
- MethodSignatureGenerator.cs
- ItemChangedEventArgs.cs
- SystemIdentity.cs
- ObjectViewQueryResultData.cs
- CharConverter.cs
- EntitySqlQueryBuilder.cs
- ParenthesizePropertyNameAttribute.cs
- CalendarDay.cs
- CssClassPropertyAttribute.cs
- Geometry3D.cs
- Identity.cs
- JumpList.cs
- BinaryParser.cs
- StorageEntityTypeMapping.cs
- CodeThrowExceptionStatement.cs
- ResponseStream.cs
- QilList.cs
- DbConnectionClosed.cs
- MatrixAnimationUsingPath.cs
- LineInfo.cs
- AddInAttribute.cs
- InstanceData.cs
- XsltInput.cs
- ExtractorMetadata.cs
- DocumentScope.cs
- PartialCachingControl.cs
- ImageListStreamer.cs
- SelfIssuedTokenFactoryCredential.cs
- DataGridCommandEventArgs.cs
- Geometry.cs