Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / RTLAwareMessageBox.cs / 1 / 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
- ProgressBarBrushConverter.cs
- InstanceDataCollectionCollection.cs
- PropertyExpression.cs
- Html32TextWriter.cs
- RoutedCommand.cs
- SafeProcessHandle.cs
- Site.cs
- MethodBuilderInstantiation.cs
- CollectionExtensions.cs
- BitVector32.cs
- MenuItemStyleCollection.cs
- M3DUtil.cs
- UnmanagedMarshal.cs
- AccessDataSourceWizardForm.cs
- ImageKeyConverter.cs
- CounterNameConverter.cs
- ContractMethodInfo.cs
- KeyConverter.cs
- UniformGrid.cs
- SHA512.cs
- Globals.cs
- _LazyAsyncResult.cs
- AsymmetricKeyExchangeDeformatter.cs
- MultiPageTextView.cs
- SectionVisual.cs
- ContextActivityUtils.cs
- NotifyIcon.cs
- M3DUtil.cs
- InkCanvasFeedbackAdorner.cs
- TreeNodeBindingCollection.cs
- RowUpdatingEventArgs.cs
- LogicalTreeHelper.cs
- AlphabeticalEnumConverter.cs
- SoapInteropTypes.cs
- EastAsianLunisolarCalendar.cs
- ArrayTypeMismatchException.cs
- BlockCollection.cs
- Calendar.cs
- JpegBitmapDecoder.cs
- Vector3dCollection.cs
- ListSortDescriptionCollection.cs
- NetPipeSectionData.cs
- UnsupportedPolicyOptionsException.cs
- RolePrincipal.cs
- ResourceDictionary.cs
- XmlIlTypeHelper.cs
- ClientSettingsProvider.cs
- IApplicationTrustManager.cs
- AnnotationHighlightLayer.cs
- TypeSemantics.cs
- Add.cs
- DrawListViewColumnHeaderEventArgs.cs
- ExpressionBindingCollection.cs
- WebPartUserCapability.cs
- ClientBuildManagerCallback.cs
- RegexInterpreter.cs
- DBBindings.cs
- StateDesigner.LayoutSelectionGlyph.cs
- StructuralCache.cs
- ObjectSecurity.cs
- TextElementCollection.cs
- Math.cs
- MethodAccessException.cs
- WebPartCloseVerb.cs
- WebServicesSection.cs
- CharacterBufferReference.cs
- DateBoldEvent.cs
- AttributeEmitter.cs
- ReverseInheritProperty.cs
- GridViewUpdatedEventArgs.cs
- DictionaryBase.cs
- FormsAuthenticationModule.cs
- Link.cs
- Error.cs
- BindableTemplateBuilder.cs
- PropertyRecord.cs
- XamlVector3DCollectionSerializer.cs
- ReadOnlyAttribute.cs
- ArgIterator.cs
- DynamicValueConverter.cs
- XdrBuilder.cs
- PtsHelper.cs
- AttachedPropertyBrowsableAttribute.cs
- TraceInternal.cs
- Reference.cs
- GridViewCommandEventArgs.cs
- Visitor.cs
- PaperSource.cs
- SmiRecordBuffer.cs
- DataGridViewBand.cs
- XmlUtf8RawTextWriter.cs
- WsdlBuildProvider.cs
- WebPartAddingEventArgs.cs
- EdmPropertyAttribute.cs
- MobileCategoryAttribute.cs
- EventMap.cs
- DataGridColumnHeaderAutomationPeer.cs
- Menu.cs
- WebPartTransformerCollection.cs
- BaseAddressElement.cs