Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / RTLAwareMessageBox.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UriExt.cs
- ArithmeticLiteral.cs
- ComponentCache.cs
- PrintPreviewGraphics.cs
- SchemaTypeEmitter.cs
- GcHandle.cs
- WsatTransactionHeader.cs
- Transform3DCollection.cs
- DictionaryEntry.cs
- HttpCapabilitiesSectionHandler.cs
- CustomErrorsSection.cs
- XmlRawWriter.cs
- CodeParameterDeclarationExpression.cs
- Accessible.cs
- ResourceExpressionBuilder.cs
- PriorityRange.cs
- safelink.cs
- FrugalList.cs
- SamlConstants.cs
- GridViewDeleteEventArgs.cs
- ConfigPathUtility.cs
- PostBackTrigger.cs
- DataGridItemEventArgs.cs
- _MultipleConnectAsync.cs
- ResourcesChangeInfo.cs
- CultureInfoConverter.cs
- BinaryKeyIdentifierClause.cs
- Literal.cs
- FontFaceLayoutInfo.cs
- Number.cs
- HttpFileCollection.cs
- TemplateBindingExtension.cs
- handlecollector.cs
- OutputCacheSettings.cs
- Table.cs
- AccessDataSourceView.cs
- XmlBindingWorker.cs
- DPCustomTypeDescriptor.cs
- mda.cs
- AbstractSvcMapFileLoader.cs
- Scripts.cs
- AnonymousIdentificationModule.cs
- ParameterCollection.cs
- ProgressBar.cs
- MailBnfHelper.cs
- UnicastIPAddressInformationCollection.cs
- DataControlPagerLinkButton.cs
- ConfigurationElementProperty.cs
- EUCJPEncoding.cs
- NativeMethods.cs
- FileAccessException.cs
- ToolStripItemImageRenderEventArgs.cs
- Polygon.cs
- Formatter.cs
- DataGridTextBox.cs
- Serializer.cs
- TypeConverterAttribute.cs
- MimeXmlReflector.cs
- EventSetterHandlerConverter.cs
- TableRowsCollectionEditor.cs
- RsaElement.cs
- CryptoKeySecurity.cs
- invalidudtexception.cs
- DataGridViewCellCancelEventArgs.cs
- CompiledRegexRunnerFactory.cs
- StdValidatorsAndConverters.cs
- WindowsContainer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ExpressionVisitorHelpers.cs
- VerifyHashRequest.cs
- ToolStripManager.cs
- AmbientLight.cs
- DecimalFormatter.cs
- Version.cs
- ContractUtils.cs
- HyperlinkAutomationPeer.cs
- SerializationFieldInfo.cs
- PropertyBuilder.cs
- Style.cs
- DataRelation.cs
- CellTreeNode.cs
- WizardPanel.cs
- BuildProviderAppliesToAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- TablePattern.cs
- ToolBar.cs
- ListViewItemSelectionChangedEvent.cs
- DefaultAssemblyResolver.cs
- ConfigsHelper.cs
- Rect3D.cs
- PropertyMapper.cs
- _SslStream.cs
- BaseTemplateBuildProvider.cs
- FormViewUpdateEventArgs.cs
- GenericWebPart.cs
- MarginCollapsingState.cs
- ChannelManager.cs
- UnsafeNativeMethods.cs
- ExclusiveTcpTransportManager.cs
- FilteredReadOnlyMetadataCollection.cs