Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EpmSyndicationContentDeSerializer.cs
- DetailsViewPagerRow.cs
- QueryExpr.cs
- ProxyFragment.cs
- Funcletizer.cs
- UriWriter.cs
- SystemException.cs
- Helpers.cs
- ServiceBuildProvider.cs
- RegionInfo.cs
- KeyTime.cs
- DataKeyCollection.cs
- ClientRoleProvider.cs
- DefaultHttpHandler.cs
- PropertyFilterAttribute.cs
- FontInfo.cs
- DataGridViewDataErrorEventArgs.cs
- ProtocolViolationException.cs
- DiagnosticTraceSchemas.cs
- ClientSideProviderDescription.cs
- Fault.cs
- CodeExporter.cs
- NeedSkipTokenVisitor.cs
- EditorZoneAutoFormat.cs
- ApplicationServicesHostFactory.cs
- PointValueSerializer.cs
- SamlAuthorizationDecisionClaimResource.cs
- MgmtConfigurationRecord.cs
- MasterPage.cs
- InfoCardProofToken.cs
- CodeAttachEventStatement.cs
- SiteMapDataSource.cs
- ConfigurationConverterBase.cs
- HtmlInputText.cs
- CreatingCookieEventArgs.cs
- PassportPrincipal.cs
- securitycriticaldataClass.cs
- ReadonlyMessageFilter.cs
- FileController.cs
- XmlNamespaceManager.cs
- SqlCachedBuffer.cs
- EmitterCache.cs
- SeparatorAutomationPeer.cs
- DesignTimeVisibleAttribute.cs
- SoapCodeExporter.cs
- QueryOperationResponseOfT.cs
- ChannelBinding.cs
- PageThemeParser.cs
- CLRBindingWorker.cs
- DbConnectionPoolIdentity.cs
- RSAOAEPKeyExchangeDeformatter.cs
- QueryCacheKey.cs
- SingleObjectCollection.cs
- DataViewSetting.cs
- SafeMILHandle.cs
- COM2ICategorizePropertiesHandler.cs
- SqlBuffer.cs
- DbCommandDefinition.cs
- base64Transforms.cs
- TimerEventSubscriptionCollection.cs
- LinqExpressionNormalizer.cs
- SerialReceived.cs
- SerializableTypeCodeDomSerializer.cs
- SiteMapDataSource.cs
- TextParagraphCache.cs
- WebInvokeAttribute.cs
- LocatorPartList.cs
- WCFModelStrings.Designer.cs
- MergeLocalizationDirectives.cs
- SizeKeyFrameCollection.cs
- mactripleDES.cs
- Int16Converter.cs
- XmlSignatureProperties.cs
- ConfigXmlText.cs
- IPEndPoint.cs
- RegistryConfigurationProvider.cs
- AttachmentService.cs
- SmiContext.cs
- Clock.cs
- ListSortDescription.cs
- TextMetrics.cs
- ScriptManager.cs
- ConfigurationElementProperty.cs
- NaturalLanguageHyphenator.cs
- COSERVERINFO.cs
- BamlRecordWriter.cs
- DesignerVerbCollection.cs
- SessionStateItemCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- Binding.cs
- Visitors.cs
- ConsumerConnectionPointCollection.cs
- Stylus.cs
- HtmlTableRowCollection.cs
- RegexWorker.cs
- SimpleMailWebEventProvider.cs
- GridViewAutoFormat.cs
- GeneralTransform3DCollection.cs
- Classification.cs
- MimeMultiPart.cs