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
- DrawingContextDrawingContextWalker.cs
- TripleDES.cs
- QueryOutputWriter.cs
- SpellerInterop.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- TreeIterators.cs
- WmpBitmapEncoder.cs
- CryptoHandle.cs
- DesignerWidgets.cs
- XmlUTF8TextWriter.cs
- QilVisitor.cs
- CallbackHandler.cs
- InputQueueChannelAcceptor.cs
- GridViewItemAutomationPeer.cs
- ThreadExceptionDialog.cs
- DataGridViewColumnHeaderCell.cs
- JsonFormatMapping.cs
- HostedAspNetEnvironment.cs
- BaseDataList.cs
- Font.cs
- RemoteWebConfigurationHostStream.cs
- RegistryKey.cs
- MruCache.cs
- MatrixTransform.cs
- ProgressiveCrcCalculatingStream.cs
- WindowsFormsDesignerOptionService.cs
- Expression.cs
- MatrixTransform3D.cs
- IUnknownConstantAttribute.cs
- WindowsAltTab.cs
- SqlFacetAttribute.cs
- ConstraintConverter.cs
- SharedUtils.cs
- ObjectDataSourceDisposingEventArgs.cs
- PeerTransportListenAddressValidatorAttribute.cs
- RegexEditorDialog.cs
- ViewValidator.cs
- ViewGenerator.cs
- ParameterBinding.cs
- AutomationProperties.cs
- NameObjectCollectionBase.cs
- HashSetDebugView.cs
- RtType.cs
- XslNumber.cs
- DynamicMetaObject.cs
- ZipPackage.cs
- _TLSstream.cs
- HttpListenerException.cs
- MethodBuilderInstantiation.cs
- DataControlFieldCollection.cs
- ViewStateModeByIdAttribute.cs
- Int32Collection.cs
- Debug.cs
- RSAPKCS1SignatureFormatter.cs
- SettingsPropertyCollection.cs
- XmlCodeExporter.cs
- BitmapCacheBrush.cs
- SectionInput.cs
- TransactionFormatter.cs
- CodeTypeOfExpression.cs
- AstTree.cs
- EventLogPermissionAttribute.cs
- TreeNode.cs
- ValidationErrorCollection.cs
- OdbcHandle.cs
- TextMarkerSource.cs
- ThemeDictionaryExtension.cs
- ImageSource.cs
- Positioning.cs
- TextProviderWrapper.cs
- GridViewRowEventArgs.cs
- Interlocked.cs
- DataGridPagerStyle.cs
- WorkflowItemsPresenter.cs
- HtmlTextArea.cs
- GAC.cs
- FileUpload.cs
- BrowserCapabilitiesCodeGenerator.cs
- QueryOptionExpression.cs
- WebPartExportVerb.cs
- WebPartManager.cs
- EasingQuaternionKeyFrame.cs
- RadioButtonPopupAdapter.cs
- MessageSecurityProtocolFactory.cs
- StateMachineHelpers.cs
- StringArrayEditor.cs
- RegexCharClass.cs
- Process.cs
- DynamicDiscoSearcher.cs
- ClientScriptItemCollection.cs
- ValueOfAction.cs
- ReturnEventArgs.cs
- DocumentXPathNavigator.cs
- JsonWriter.cs
- GridViewColumn.cs
- SessionStateUtil.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- InternalsVisibleToAttribute.cs
- WebCategoryAttribute.cs
- _Connection.cs