Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RuntimeConfig.cs
- MULTI_QI.cs
- VBIdentifierDesigner.xaml.cs
- ThrowHelper.cs
- UpdatePanel.cs
- XmlDataLoader.cs
- ImageField.cs
- sqlinternaltransaction.cs
- XsltInput.cs
- CharKeyFrameCollection.cs
- IMembershipProvider.cs
- HandlerWithFactory.cs
- ReadWriteObjectLock.cs
- DynamicRendererThreadManager.cs
- SignedXml.cs
- DataGridViewCellCancelEventArgs.cs
- DigestComparer.cs
- ContentPosition.cs
- HostingEnvironment.cs
- MailMessage.cs
- CursorConverter.cs
- PropertyGrid.cs
- PassportAuthenticationEventArgs.cs
- BuildDependencySet.cs
- DATA_BLOB.cs
- UniqueID.cs
- ListenerPerfCounters.cs
- SafeThemeHandle.cs
- ListViewItem.cs
- UnsafeNativeMethods.cs
- PreProcessInputEventArgs.cs
- DataObjectFieldAttribute.cs
- EntityContainerRelationshipSet.cs
- Vector3DAnimationUsingKeyFrames.cs
- ControlBindingsCollection.cs
- AnimationClock.cs
- AuthenticationService.cs
- UndoManager.cs
- WorkflowInlining.cs
- ObjectConverter.cs
- GridViewCommandEventArgs.cs
- DictionaryEntry.cs
- EncodingNLS.cs
- TextSimpleMarkerProperties.cs
- DetailsViewDeleteEventArgs.cs
- ReferencedAssembly.cs
- ISAPIRuntime.cs
- LinkButton.cs
- Operator.cs
- SessionEndedEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- XmlAggregates.cs
- BulletDecorator.cs
- ControlParser.cs
- ComboBoxAutomationPeer.cs
- SvcMapFileSerializer.cs
- DataSpaceManager.cs
- RenderData.cs
- MissingMethodException.cs
- WebSysDescriptionAttribute.cs
- Literal.cs
- ReversePositionQuery.cs
- ZoneIdentityPermission.cs
- DataSourceCacheDurationConverter.cs
- ISCIIEncoding.cs
- SelectionEditor.cs
- SQLDateTime.cs
- Int64AnimationUsingKeyFrames.cs
- XmlMapping.cs
- LineServicesCallbacks.cs
- CreateDataSourceDialog.cs
- Assert.cs
- AsymmetricSignatureFormatter.cs
- AnimationException.cs
- MimeWriter.cs
- HasCopySemanticsAttribute.cs
- WorkflowElementDialogWindow.xaml.cs
- ComboBox.cs
- InternalBufferManager.cs
- HttpProfileGroupBase.cs
- WhitespaceSignificantCollectionAttribute.cs
- Win32Exception.cs
- HttpSocketManager.cs
- InvalidPrinterException.cs
- ApplicationProxyInternal.cs
- SmtpLoginAuthenticationModule.cs
- BooleanConverter.cs
- EdmType.cs
- CopyOnWriteList.cs
- FormView.cs
- MiniCustomAttributeInfo.cs
- SqlClientWrapperSmiStream.cs
- NativeMethods.cs
- DataTablePropertyDescriptor.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlILTrace.cs
- ContentTextAutomationPeer.cs
- EmptyQuery.cs
- ScalarConstant.cs
- DoubleCollectionValueSerializer.cs