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
- Command.cs
- SwitchElementsCollection.cs
- ClientRuntimeConfig.cs
- StylusPointPropertyUnit.cs
- RegexRunnerFactory.cs
- SqlNodeAnnotations.cs
- PartitionResolver.cs
- PageSettings.cs
- PageCatalogPart.cs
- PathGeometry.cs
- Set.cs
- DataGridViewColumnTypePicker.cs
- CasesDictionary.cs
- DbModificationCommandTree.cs
- OverflowException.cs
- ScaleTransform3D.cs
- DataGridViewRowCollection.cs
- JsonDeserializer.cs
- SourceFileBuildProvider.cs
- DiagnosticsConfiguration.cs
- Int32Rect.cs
- TargetControlTypeAttribute.cs
- ZoneIdentityPermission.cs
- RuleSetReference.cs
- GenericPrincipal.cs
- EndpointInfoCollection.cs
- WmpBitmapEncoder.cs
- RegionInfo.cs
- DbProviderFactoriesConfigurationHandler.cs
- SafeIUnknown.cs
- counter.cs
- FlowchartDesignerCommands.cs
- XmlSerializerFactory.cs
- ColorTranslator.cs
- Pair.cs
- ExitEventArgs.cs
- AppSecurityManager.cs
- DiscoveryClientChannelBase.cs
- Condition.cs
- CopyOnWriteList.cs
- ModuleElement.cs
- BaseTemplateCodeDomTreeGenerator.cs
- EmptyEnumerator.cs
- LinearKeyFrames.cs
- HtmlValidatorAdapter.cs
- UrlPropertyAttribute.cs
- BaseCodePageEncoding.cs
- PolyLineSegment.cs
- InternalBufferOverflowException.cs
- CompilerScope.Storage.cs
- DataGridViewMethods.cs
- StringInfo.cs
- FontNamesConverter.cs
- ReadOnlyMetadataCollection.cs
- OpenFileDialog.cs
- DoubleUtil.cs
- ILGen.cs
- ListParaClient.cs
- ObjectStorage.cs
- EntityDataSourceState.cs
- DataDocumentXPathNavigator.cs
- XmlNamedNodeMap.cs
- printdlgexmarshaler.cs
- MenuAdapter.cs
- SoapTypeAttribute.cs
- ServiceHostFactory.cs
- WebAdminConfigurationHelper.cs
- CngKey.cs
- InputProviderSite.cs
- XsltLibrary.cs
- UrlMapping.cs
- XmlDataLoader.cs
- KnownColorTable.cs
- VirtualDirectoryMapping.cs
- WebPartZoneBase.cs
- XamlDesignerSerializationManager.cs
- XmlSignatureManifest.cs
- ReplyAdapterChannelListener.cs
- Publisher.cs
- RecordManager.cs
- Operator.cs
- mactripleDES.cs
- LeafCellTreeNode.cs
- GenericAuthenticationEventArgs.cs
- BoundPropertyEntry.cs
- XMLUtil.cs
- basemetadatamappingvisitor.cs
- DrawingBrush.cs
- NodeInfo.cs
- UnionExpr.cs
- CharacterMetrics.cs
- PersonalizablePropertyEntry.cs
- SchemaNamespaceManager.cs
- MeasureData.cs
- SqlDataReaderSmi.cs
- Validator.cs
- AddInStore.cs
- IsolatedStorageFilePermission.cs
- CodeTypeParameter.cs
- RegistrySecurity.cs