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
- _SSPISessionCache.cs
- TypePropertyEditor.cs
- Pool.cs
- WindowsAuthenticationModule.cs
- C14NUtil.cs
- iisPickupDirectory.cs
- WebMessageFormatHelper.cs
- ThreadAttributes.cs
- XmlAnyElementAttributes.cs
- XmlWriterSettings.cs
- OracleCommandBuilder.cs
- Transform3DCollection.cs
- CompressedStack.cs
- ResourceIDHelper.cs
- CompiledXpathExpr.cs
- ReachDocumentSequenceSerializer.cs
- XmlSerializer.cs
- ReadOnlyDataSourceView.cs
- XpsPackagingPolicy.cs
- ToolStripRendererSwitcher.cs
- HtmlUtf8RawTextWriter.cs
- Int64.cs
- IgnoreFlushAndCloseStream.cs
- RepeatBehavior.cs
- JpegBitmapDecoder.cs
- ProfilePropertySettingsCollection.cs
- FormatPage.cs
- PauseStoryboard.cs
- XmlSchemaSimpleTypeList.cs
- ContactManager.cs
- BamlBinaryReader.cs
- GenericAuthenticationEventArgs.cs
- DataListItemCollection.cs
- Shared.cs
- UiaCoreApi.cs
- AggregateNode.cs
- SoapAttributeOverrides.cs
- InputLanguageManager.cs
- CurrentChangingEventManager.cs
- MsmqIntegrationInputMessage.cs
- BaseParagraph.cs
- XamlGridLengthSerializer.cs
- EventLogReader.cs
- Expression.cs
- Sql8ConformanceChecker.cs
- RoleGroup.cs
- StringPropertyBuilder.cs
- InputReport.cs
- XmlTextWriter.cs
- ZipIOLocalFileDataDescriptor.cs
- EntityDataSourceView.cs
- MenuCommand.cs
- GatewayIPAddressInformationCollection.cs
- Variable.cs
- ApplicationSecurityManager.cs
- FacetEnabledSchemaElement.cs
- shaper.cs
- XmlEventCache.cs
- ScriptingWebServicesSectionGroup.cs
- StructuredTypeEmitter.cs
- SafeJobHandle.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- AxHost.cs
- UseAttributeSetsAction.cs
- DateTimeOffset.cs
- ResourceExpression.cs
- ProviderIncompatibleException.cs
- ClosableStream.cs
- IRCollection.cs
- NetDispatcherFaultException.cs
- EnumerableCollectionView.cs
- RegexMatchCollection.cs
- dataobject.cs
- KeySpline.cs
- IriParsingElement.cs
- BindingExpressionUncommonField.cs
- XmlTextEncoder.cs
- PersonalizationState.cs
- log.cs
- MouseCaptureWithinProperty.cs
- Matrix3DConverter.cs
- UnauthorizedAccessException.cs
- OletxVolatileEnlistment.cs
- WorkflowPersistenceContext.cs
- NumberEdit.cs
- WebProxyScriptElement.cs
- ReplyChannelBinder.cs
- ChannelManager.cs
- SvcMapFileSerializer.cs
- SafeWaitHandle.cs
- DbConnectionStringBuilder.cs
- StreamWithDictionary.cs
- EventLogPermissionEntryCollection.cs
- UIPermission.cs
- HostTimeoutsElement.cs
- MobileControlsSectionHandler.cs
- DataTemplate.cs
- COM2ComponentEditor.cs
- SystemThemeKey.cs
- WebPartManagerInternals.cs