Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1305376 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System; using System.Windows.Forms; ////// /// internal sealed 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 SR.GetString(SR.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
- XmlNotation.cs
- DurationConverter.cs
- MimeReflector.cs
- DES.cs
- BooleanSwitch.cs
- TextRangeSerialization.cs
- ButtonBase.cs
- DebugView.cs
- OdbcParameter.cs
- SrgsSemanticInterpretationTag.cs
- ModulesEntry.cs
- HeaderUtility.cs
- DependencyObjectPropertyDescriptor.cs
- BasicBrowserDialog.cs
- XmlUnspecifiedAttribute.cs
- HtmlControlPersistable.cs
- StorageMappingItemLoader.cs
- SchemaTableOptionalColumn.cs
- HtmlControlDesigner.cs
- WorkflowApplicationAbortedException.cs
- DetailsView.cs
- ExecutionEngineException.cs
- ProcessActivityTreeOptions.cs
- SafeNativeMethods.cs
- TypedTableBase.cs
- ConnectionsZone.cs
- StylusDevice.cs
- DecimalStorage.cs
- XmlSchemaAnyAttribute.cs
- WorkflowOperationAsyncResult.cs
- KeyGestureValueSerializer.cs
- GeometryCombineModeValidation.cs
- DesignerLoader.cs
- ToolStripPanelRow.cs
- SafeTokenHandle.cs
- Brush.cs
- Trigger.cs
- EdmItemError.cs
- ContainerParaClient.cs
- FrameworkRichTextComposition.cs
- Selector.cs
- LinqDataSource.cs
- BuildManagerHost.cs
- SmtpMail.cs
- PolyQuadraticBezierSegment.cs
- CellTreeNodeVisitors.cs
- StyleHelper.cs
- ResourceSet.cs
- QueryResult.cs
- Link.cs
- CodeMemberProperty.cs
- HeaderCollection.cs
- ResourceAttributes.cs
- MonikerSyntaxException.cs
- FtpCachePolicyElement.cs
- DataSourceHelper.cs
- FormatterServices.cs
- BindingList.cs
- TransactionInformation.cs
- SmtpCommands.cs
- Image.cs
- MouseDevice.cs
- ColumnHeader.cs
- InvalidCommandTreeException.cs
- HostedHttpTransportManager.cs
- ComponentCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- FactoryMaker.cs
- IDataContractSurrogate.cs
- DataErrorValidationRule.cs
- GenericTypeParameterBuilder.cs
- WebPartVerb.cs
- TaskHelper.cs
- TextEffectResolver.cs
- TemplatedWizardStep.cs
- DefaultParameterValueAttribute.cs
- URLIdentityPermission.cs
- OptimalBreakSession.cs
- GridViewCancelEditEventArgs.cs
- Missing.cs
- EntityDataSourceContainerNameItem.cs
- MultiAsyncResult.cs
- ScrollChangedEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- SchemaImporterExtension.cs
- BufferAllocator.cs
- SqlOuterApplyReducer.cs
- AppDomainAttributes.cs
- EventItfInfo.cs
- ProviderMetadataCachedInformation.cs
- ScrollItemPatternIdentifiers.cs
- XmlSortKey.cs
- StateRuntime.cs
- ToolStripDesignerAvailabilityAttribute.cs
- NavigationCommands.cs
- MulticastOption.cs
- CreateParams.cs
- FixUp.cs
- RequestTimeoutManager.cs
- HttpWrapper.cs