Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 3 / RTLAwareMessageBox.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Windows.Forms; using System.Design; namespace System.Web.UI.Design.WebControls { ////// 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 Strings.RTL != "RTL_False"; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.Windows.Forms; using System.Design; namespace System.Web.UI.Design.WebControls { ////// 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 Strings.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
- UserNameSecurityTokenParameters.cs
- GlyphTypeface.cs
- OleDbRowUpdatingEvent.cs
- Keywords.cs
- ObjectDataSourceDisposingEventArgs.cs
- NamespaceList.cs
- RoutedEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- ColumnTypeConverter.cs
- PropertyMapper.cs
- GacUtil.cs
- TextFragmentEngine.cs
- TagPrefixAttribute.cs
- OLEDB_Enum.cs
- ModelFunctionTypeElement.cs
- WorkflowDefinitionContext.cs
- DataObject.cs
- VirtualDirectoryMapping.cs
- SimpleTextLine.cs
- ObjectFullSpanRewriter.cs
- LicenseProviderAttribute.cs
- TypeConverterValueSerializer.cs
- Cursor.cs
- WeakKeyDictionary.cs
- ActivityMetadata.cs
- RotateTransform3D.cs
- TextRunProperties.cs
- DataColumnMapping.cs
- VirtualDirectoryMappingCollection.cs
- WorkflowOwnershipException.cs
- HttpApplicationStateWrapper.cs
- BamlWriter.cs
- PeerName.cs
- CompModSwitches.cs
- WebPartDisplayModeCollection.cs
- FeatureSupport.cs
- AxisAngleRotation3D.cs
- DataGridViewButtonColumn.cs
- OpenTypeCommon.cs
- DataObject.cs
- DomainConstraint.cs
- AsyncCompletedEventArgs.cs
- DataGridViewUtilities.cs
- FamilyMapCollection.cs
- DependencyPropertyAttribute.cs
- KeyInstance.cs
- XmlSchemaAnyAttribute.cs
- ComponentResourceKey.cs
- SelectedDatesCollection.cs
- XmlWriterSettings.cs
- XPathNavigator.cs
- PrintEvent.cs
- DeviceContext2.cs
- XsdDuration.cs
- CqlGenerator.cs
- AsymmetricKeyExchangeFormatter.cs
- SerializationIncompleteException.cs
- FontNamesConverter.cs
- ByteKeyFrameCollection.cs
- HtmlUtf8RawTextWriter.cs
- TextTreeText.cs
- ControlIdConverter.cs
- WrappedIUnknown.cs
- WSDualHttpBinding.cs
- FlowDocumentPaginator.cs
- UpdatePanelTriggerCollection.cs
- TextElementEnumerator.cs
- ParseNumbers.cs
- QuaternionAnimation.cs
- XmlAttributeProperties.cs
- DocumentApplicationJournalEntry.cs
- TextEditor.cs
- TreeChangeInfo.cs
- JulianCalendar.cs
- ComponentConverter.cs
- MaterialGroup.cs
- XmlBuffer.cs
- FirstMatchCodeGroup.cs
- FrameDimension.cs
- MemberHolder.cs
- DirectoryRootQuery.cs
- ProjectedSlot.cs
- DataKey.cs
- QueryAsyncResult.cs
- PrivilegeNotHeldException.cs
- ellipse.cs
- RefExpr.cs
- WindowsTab.cs
- X509Utils.cs
- FeatureSupport.cs
- SmtpTransport.cs
- RegexRunnerFactory.cs
- Thread.cs
- HighlightVisual.cs
- EndpointConfigContainer.cs
- JsonWriterDelegator.cs
- AccessDataSource.cs
- CodeTypeDeclarationCollection.cs
- ConstraintStruct.cs
- OSFeature.cs