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
- ReaderWriterLockWrapper.cs
- HttpCapabilitiesEvaluator.cs
- SyntaxCheck.cs
- counter.cs
- CopyOnWriteList.cs
- UIElementAutomationPeer.cs
- DataGridViewControlCollection.cs
- LingerOption.cs
- XmlWriterSettings.cs
- SafeCryptHandles.cs
- HttpCookiesSection.cs
- BinaryObjectWriter.cs
- ConfigurationCollectionAttribute.cs
- FormsAuthenticationUser.cs
- ProgressChangedEventArgs.cs
- XmlSchemaGroupRef.cs
- LongAverageAggregationOperator.cs
- FrameworkContentElementAutomationPeer.cs
- Inflater.cs
- DispatcherExceptionFilterEventArgs.cs
- SignatureHelper.cs
- SpellerStatusTable.cs
- InfoCardSymmetricCrypto.cs
- ProgressBar.cs
- XhtmlBasicTextBoxAdapter.cs
- MultiDataTrigger.cs
- HtmlElement.cs
- SplitterCancelEvent.cs
- ScriptModule.cs
- MergablePropertyAttribute.cs
- ControlBuilderAttribute.cs
- URLIdentityPermission.cs
- HtmlTable.cs
- InstanceKeyNotReadyException.cs
- ChannelPoolSettingsElement.cs
- ContextBase.cs
- ListViewItem.cs
- AttributeSetAction.cs
- XmlTypeAttribute.cs
- MatrixTransform.cs
- DataBoundControlHelper.cs
- DataDocumentXPathNavigator.cs
- Monitor.cs
- HttpCapabilitiesSectionHandler.cs
- OutputScopeManager.cs
- InternalControlCollection.cs
- WebPartTransformerCollection.cs
- HMACSHA384.cs
- DebugView.cs
- DataGridViewMethods.cs
- PrintDocument.cs
- StaticExtension.cs
- FormattedTextSymbols.cs
- OraclePermission.cs
- FixedSOMFixedBlock.cs
- WebPartConnectionsCancelEventArgs.cs
- MediaEntryAttribute.cs
- ObjectDataSourceEventArgs.cs
- FreezableDefaultValueFactory.cs
- HandleCollector.cs
- TableLayoutPanel.cs
- SHA384Managed.cs
- HwndSourceParameters.cs
- BitmapEffectDrawing.cs
- DBConnection.cs
- SynchronizationValidator.cs
- AsymmetricSignatureDeformatter.cs
- WorkflowDesigner.cs
- Delegate.cs
- FromRequest.cs
- IdentityValidationException.cs
- DataObjectEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- Error.cs
- TextServicesCompartment.cs
- OletxTransactionManager.cs
- PackageRelationshipCollection.cs
- ConditionalAttribute.cs
- PreservationFileWriter.cs
- ExtensibleClassFactory.cs
- TextParagraphProperties.cs
- ProcessHostFactoryHelper.cs
- SqlRowUpdatedEvent.cs
- ComponentDispatcherThread.cs
- SafeTokenHandle.cs
- TableItemStyle.cs
- XpsSerializationException.cs
- ComponentFactoryHelpers.cs
- SecureConversationVersion.cs
- RtfFormatStack.cs
- JsonDataContract.cs
- BaseCodeDomTreeGenerator.cs
- _AuthenticationState.cs
- ParamArrayAttribute.cs
- XmlCustomFormatter.cs
- PersonalizationStateInfo.cs
- LiteralControl.cs
- SharedDp.cs
- PlanCompiler.cs
- Enum.cs