Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / RTLAwareMessageBox.cs / 1 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Windows.Forms; using System.Design; ////// /// 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 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
- UxThemeWrapper.cs
- FormatConvertedBitmap.cs
- GridItemCollection.cs
- RewritingValidator.cs
- GeometryDrawing.cs
- AncestorChangedEventArgs.cs
- XmlSchemaSimpleTypeUnion.cs
- LocatorBase.cs
- PopupRootAutomationPeer.cs
- StaticFileHandler.cs
- MethodToken.cs
- TreeNodeMouseHoverEvent.cs
- TempFiles.cs
- EntityViewGenerationAttribute.cs
- ColorConverter.cs
- ContextMenuStripActionList.cs
- ToolStrip.cs
- CapacityStreamGeometryContext.cs
- RequestSecurityTokenForGetBrowserToken.cs
- Misc.cs
- QuaternionRotation3D.cs
- HwndSource.cs
- XmlAnyElementAttributes.cs
- RoleGroupCollection.cs
- SignatureHelper.cs
- SoapAttributeAttribute.cs
- ToolStripStatusLabel.cs
- PrivacyNoticeElement.cs
- IItemProperties.cs
- CodeArrayIndexerExpression.cs
- DetailsViewRow.cs
- StrongNameMembershipCondition.cs
- SaveFileDialog.cs
- DragEventArgs.cs
- DrawingContext.cs
- Command.cs
- ObjectDataProvider.cs
- DefaultPrintController.cs
- VarInfo.cs
- HttpModuleCollection.cs
- XmlCodeExporter.cs
- CellCreator.cs
- ConstraintCollection.cs
- HtmlElement.cs
- CredentialCache.cs
- VsPropertyGrid.cs
- DataGridBoolColumn.cs
- NetworkInformationException.cs
- SystemEvents.cs
- TreeNodeMouseHoverEvent.cs
- ProcessProtocolHandler.cs
- ConnectivityStatus.cs
- PropertyDescriptor.cs
- WinFormsSecurity.cs
- DataGridViewLayoutData.cs
- SynchronousChannel.cs
- UnauthorizedAccessException.cs
- XmlAtomicValue.cs
- Panel.cs
- EdmProviderManifest.cs
- EncoderReplacementFallback.cs
- StateChangeEvent.cs
- MessageRpc.cs
- CustomAttribute.cs
- ExpressionBuilderCollection.cs
- RadialGradientBrush.cs
- PeerNameRegistration.cs
- DictionaryEntry.cs
- DataTemplateSelector.cs
- ClientConfigurationSystem.cs
- PageAsyncTask.cs
- CollectionsUtil.cs
- GridViewCommandEventArgs.cs
- DPTypeDescriptorContext.cs
- WorkItem.cs
- PolyBezierSegment.cs
- EncryptedReference.cs
- CommandValueSerializer.cs
- DataSourceView.cs
- ProvidersHelper.cs
- Animatable.cs
- InvalidWMPVersionException.cs
- DefaultEventAttribute.cs
- odbcmetadatafactory.cs
- SqlCommandSet.cs
- Overlapped.cs
- GridViewItemAutomationPeer.cs
- RawStylusInputCustomData.cs
- UseLicense.cs
- ClientUrlResolverWrapper.cs
- ProfileProvider.cs
- TypeLoadException.cs
- ParameterEditorUserControl.cs
- EnumerableCollectionView.cs
- URLString.cs
- PrivilegeNotHeldException.cs
- TreeIterators.cs
- GenericTypeParameterBuilder.cs
- DataGridItemEventArgs.cs
- DesignUtil.cs