Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AudienceUriMode.cs
- BlurBitmapEffect.cs
- Inline.cs
- XamlClipboardData.cs
- VarRemapper.cs
- HttpRequestCacheValidator.cs
- ApplicationGesture.cs
- ErrorFormatterPage.cs
- VarRefManager.cs
- UIElementPropertyUndoUnit.cs
- ObjectPersistData.cs
- NativeObjectSecurity.cs
- BindToObject.cs
- ListGeneralPage.cs
- Sequence.cs
- WebPartHeaderCloseVerb.cs
- StringFreezingAttribute.cs
- XmlIgnoreAttribute.cs
- AttributeTable.cs
- RoleManagerSection.cs
- ButtonColumn.cs
- newitemfactory.cs
- DecoderReplacementFallback.cs
- ConfigurationStrings.cs
- HandlerBase.cs
- RectangleGeometry.cs
- NotCondition.cs
- GiveFeedbackEvent.cs
- SerializationFieldInfo.cs
- ImageKeyConverter.cs
- NetworkInterface.cs
- DetailsView.cs
- GridViewRowCollection.cs
- ConnectionsZoneAutoFormat.cs
- MetadataItemSerializer.cs
- unsafenativemethodsother.cs
- PlainXmlWriter.cs
- SharedDp.cs
- FontFamily.cs
- OptionUsage.cs
- Help.cs
- MarkupCompilePass1.cs
- ISessionStateStore.cs
- ThousandthOfEmRealPoints.cs
- ProtectedConfigurationProviderCollection.cs
- PropertyFilter.cs
- ExecutionEngineException.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- TransactionException.cs
- WebEvents.cs
- XmlTextEncoder.cs
- ThrowHelper.cs
- RequiredFieldValidator.cs
- EventWaitHandle.cs
- XmlDocumentType.cs
- CloseCryptoHandleRequest.cs
- LineGeometry.cs
- ReadOnlyPropertyMetadata.cs
- RuleSettingsCollection.cs
- SessionStateUtil.cs
- CompiledQueryCacheEntry.cs
- ExtensionWindow.cs
- HebrewNumber.cs
- RuntimeCompatibilityAttribute.cs
- Component.cs
- PersonalizationState.cs
- ReliableRequestSessionChannel.cs
- DetailsViewInsertedEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- SqlProviderUtilities.cs
- ModifiableIteratorCollection.cs
- Accessible.cs
- ControlBindingsConverter.cs
- IntSecurity.cs
- BitmapEffectDrawingContextState.cs
- HtmlToClrEventProxy.cs
- WebEncodingValidator.cs
- SingleTagSectionHandler.cs
- OperatingSystem.cs
- SqlDataAdapter.cs
- VirtualPathProvider.cs
- HttpInputStream.cs
- WindowsFormsSynchronizationContext.cs
- ApplicationDirectoryMembershipCondition.cs
- ContactManager.cs
- XmlLanguage.cs
- ReflectTypeDescriptionProvider.cs
- DependentList.cs
- InputLanguageSource.cs
- RewritingSimplifier.cs
- SqlReferenceCollection.cs
- NonParentingControl.cs
- KeyNotFoundException.cs
- WindowsTitleBar.cs
- SQLBinaryStorage.cs
- KoreanCalendar.cs
- WebPartMenu.cs
- PageThemeBuildProvider.cs
- ToolStripRenderer.cs
- SQLInt64Storage.cs