Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- /* */ 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
- GB18030Encoding.cs
- FixedSOMTableCell.cs
- OLEDB_Util.cs
- Column.cs
- RepeaterItemCollection.cs
- DataGridItemAutomationPeer.cs
- COM2PropertyBuilderUITypeEditor.cs
- SQLUtility.cs
- Funcletizer.cs
- QilParameter.cs
- DataProtection.cs
- TraceUtils.cs
- TraceLevelStore.cs
- BitConverter.cs
- WebBrowserBase.cs
- ConfigurationManagerInternal.cs
- SHA1Managed.cs
- NotifyIcon.cs
- OleDbDataAdapter.cs
- MarkupCompiler.cs
- ObjectDataSourceChooseMethodsPanel.cs
- RuntimeEnvironment.cs
- _ProxyChain.cs
- TextSpan.cs
- Options.cs
- TransactionException.cs
- AutoGeneratedField.cs
- Label.cs
- SystemEvents.cs
- AppearanceEditorPart.cs
- ListBox.cs
- PrintPageEvent.cs
- ArgumentOutOfRangeException.cs
- DBNull.cs
- Animatable.cs
- UnsafeNativeMethodsPenimc.cs
- EntitySetRetriever.cs
- TextBoxView.cs
- MetadataElement.cs
- ClonableStack.cs
- XslCompiledTransform.cs
- COM2IPerPropertyBrowsingHandler.cs
- ConfigurationManagerInternalFactory.cs
- ResXDataNode.cs
- Pen.cs
- EqualityComparer.cs
- DataContractSerializerFaultFormatter.cs
- Claim.cs
- SystemSounds.cs
- ListControlConvertEventArgs.cs
- KeyConverter.cs
- XmlSignificantWhitespace.cs
- OracleCommandBuilder.cs
- DataGridViewMethods.cs
- keycontainerpermission.cs
- XamlVector3DCollectionSerializer.cs
- UnaryExpression.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Line.cs
- CqlParser.cs
- SecurityDocument.cs
- XmlElement.cs
- HostedImpersonationContext.cs
- SiteMapHierarchicalDataSourceView.cs
- ProvidersHelper.cs
- WindowsIdentity.cs
- XamlReaderHelper.cs
- FontNameConverter.cs
- ListItemCollection.cs
- MenuEventArgs.cs
- ClientOptions.cs
- Command.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- LinqDataSourceView.cs
- SiteMapDataSourceView.cs
- PolyQuadraticBezierSegment.cs
- CodeTryCatchFinallyStatement.cs
- XslTransform.cs
- NameValueCollection.cs
- AnimationClock.cs
- TopClause.cs
- DataBindingHandlerAttribute.cs
- _FtpControlStream.cs
- PeerToPeerException.cs
- Boolean.cs
- SourceSwitch.cs
- HttpHandlersSection.cs
- WebPartConnectionsCancelVerb.cs
- ArcSegment.cs
- Pair.cs
- EmptyWithCancelationCheckWorkItem.cs
- ErrorProvider.cs
- SwitchElementsCollection.cs
- WebResourceUtil.cs
- SmtpNegotiateAuthenticationModule.cs
- UICuesEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- PropertiesTab.cs
- BindingContext.cs
- PropertySegmentSerializer.cs