Code:
/ DotNET / DotNET / 8.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
- Number.cs
- DeferredSelectedIndexReference.cs
- EnumMember.cs
- WizardStepCollectionEditor.cs
- QilTargetType.cs
- _Win32.cs
- DeclarationUpdate.cs
- BoundsDrawingContextWalker.cs
- TextBlock.cs
- ExpressionBuilderCollection.cs
- ColorDialog.cs
- SessionStateSection.cs
- LeafCellTreeNode.cs
- EffectiveValueEntry.cs
- DynamicValidator.cs
- DesignerVerbCollection.cs
- BitmapEffectDrawing.cs
- SapiRecognizer.cs
- SqlBuffer.cs
- TextRangeProviderWrapper.cs
- PointHitTestParameters.cs
- Cloud.cs
- XmlSerializerVersionAttribute.cs
- CorrelationToken.cs
- ImageConverter.cs
- PasswordTextContainer.cs
- BindingCompleteEventArgs.cs
- SecurityKeyType.cs
- VisualStyleElement.cs
- WorkflowTraceTransfer.cs
- ObjectStorage.cs
- HitTestResult.cs
- ImageFormat.cs
- PropertiesTab.cs
- XmlDataSource.cs
- DocComment.cs
- PrintDocument.cs
- WSMessageEncoding.cs
- StringValueSerializer.cs
- ISAPIWorkerRequest.cs
- CodeIterationStatement.cs
- GlyphingCache.cs
- SqlPersonalizationProvider.cs
- TextAction.cs
- FilterEventArgs.cs
- HttpHandlerAction.cs
- StaticTextPointer.cs
- DiscoveryInnerClientManaged11.cs
- iisPickupDirectory.cs
- ImageIndexConverter.cs
- NotConverter.cs
- AssemblyInfo.cs
- TdsValueSetter.cs
- HandlerWithFactory.cs
- GraphicsContext.cs
- SubpageParagraph.cs
- ExpressionPrefixAttribute.cs
- WebPartDescriptionCollection.cs
- LineServicesCallbacks.cs
- AssemblyCollection.cs
- LogSwitch.cs
- FeatureAttribute.cs
- TypeSemantics.cs
- RootDesignerSerializerAttribute.cs
- VirtualizingStackPanel.cs
- LinkButton.cs
- HybridDictionary.cs
- EventLogPermissionEntryCollection.cs
- WeakRefEnumerator.cs
- AssemblyCache.cs
- GradientSpreadMethodValidation.cs
- DbUpdateCommandTree.cs
- MergeFilterQuery.cs
- RefExpr.cs
- DiscoveryUtility.cs
- PlanCompilerUtil.cs
- CheckBoxFlatAdapter.cs
- VirtualizingPanel.cs
- RelationalExpressions.cs
- RuntimeEnvironment.cs
- NativeMethods.cs
- GlyphsSerializer.cs
- MemberInitExpression.cs
- WinCategoryAttribute.cs
- CopyOnWriteList.cs
- SpecialFolderEnumConverter.cs
- _SslStream.cs
- sqlinternaltransaction.cs
- StyleHelper.cs
- HttpModuleActionCollection.cs
- SemaphoreFullException.cs
- Stopwatch.cs
- WinInet.cs
- QueryOperationResponseOfT.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DialogWindow.cs
- RelatedCurrencyManager.cs
- ObjectStateFormatter.cs
- ToolStripTextBox.cs
- SizeChangedEventArgs.cs