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
- BuilderInfo.cs
- ServicePoint.cs
- EmptyEnumerator.cs
- OptimalBreakSession.cs
- BinaryParser.cs
- ProxyWebPart.cs
- BindingExpressionBase.cs
- Module.cs
- ConfigurationManagerInternalFactory.cs
- DynamicMetaObject.cs
- DependencyPropertyKey.cs
- RIPEMD160Managed.cs
- PersistenceException.cs
- ScrollItemProviderWrapper.cs
- ParentUndoUnit.cs
- SchemaImporterExtensionElementCollection.cs
- InputLangChangeRequestEvent.cs
- CodeMemberField.cs
- sitestring.cs
- ControlValuePropertyAttribute.cs
- ExpressionBuilder.cs
- ObjectAnimationBase.cs
- ObjectCloneHelper.cs
- ScrollEventArgs.cs
- GeneralTransform.cs
- ChannelManager.cs
- OptimalTextSource.cs
- URI.cs
- AccessControlEntry.cs
- ToolboxItemSnapLineBehavior.cs
- HideDisabledControlAdapter.cs
- XmlSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- QueryReaderSettings.cs
- ContentDisposition.cs
- MimeParameter.cs
- ListBoxItemWrapperAutomationPeer.cs
- UTF32Encoding.cs
- Trigger.cs
- SoapObjectWriter.cs
- _ListenerAsyncResult.cs
- MachineSettingsSection.cs
- SoapFormatter.cs
- VolatileResourceManager.cs
- TreeNodeConverter.cs
- NumericUpDown.cs
- BoundPropertyEntry.cs
- NumericExpr.cs
- VirtualizingPanel.cs
- TextAnchor.cs
- DelimitedListTraceListener.cs
- DecimalKeyFrameCollection.cs
- EventProxy.cs
- ConfigXmlAttribute.cs
- documentsequencetextcontainer.cs
- DummyDataSource.cs
- CollectionViewProxy.cs
- EdmTypeAttribute.cs
- CustomAttributeSerializer.cs
- LogEntryDeserializer.cs
- BufferedReadStream.cs
- SingleSelectRootGridEntry.cs
- DataGridViewRowStateChangedEventArgs.cs
- Accessors.cs
- SchemaImporterExtensionElement.cs
- cookie.cs
- RenderTargetBitmap.cs
- UpdateTracker.cs
- TransformerConfigurationWizardBase.cs
- _AuthenticationState.cs
- WsdlInspector.cs
- RelativeSource.cs
- __Filters.cs
- SettingsAttributeDictionary.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- TypefaceMetricsCache.cs
- TreeIterator.cs
- MenuScrollingVisibilityConverter.cs
- Matrix.cs
- EventArgs.cs
- CodeComment.cs
- DesignRelation.cs
- SpellerHighlightLayer.cs
- Console.cs
- SqlXml.cs
- FloaterParaClient.cs
- TemplateContentLoader.cs
- TrustSection.cs
- ListViewGroup.cs
- WebPartConnectionsCancelVerb.cs
- DateTimeParse.cs
- IdentityReference.cs
- GlobalProxySelection.cs
- SplashScreen.cs
- ClientSession.cs
- EpmTargetPathSegment.cs
- PointCollection.cs
- ElementNotAvailableException.cs
- ProfileSettingsCollection.cs
- printdlgexmarshaler.cs