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
- XamlUtilities.cs
- DataGridViewCellStyleConverter.cs
- StringPropertyBuilder.cs
- DebugView.cs
- InvokeHandlers.cs
- EdmPropertyAttribute.cs
- PropertyGeneratedEventArgs.cs
- ActivityExecutionFilter.cs
- SqlNodeAnnotations.cs
- AssertFilter.cs
- Page.cs
- HtmlInputFile.cs
- PaperSize.cs
- EncryptedReference.cs
- UncommonField.cs
- HostingEnvironmentException.cs
- SiteMapDataSourceView.cs
- WpfWebRequestHelper.cs
- Point3DCollectionValueSerializer.cs
- Decoder.cs
- BaseDataBoundControl.cs
- EventSourceCreationData.cs
- SetterTriggerConditionValueConverter.cs
- SQLBinary.cs
- ReferencedAssembly.cs
- TdsParser.cs
- CacheMemory.cs
- KeyNotFoundException.cs
- RichTextBoxAutomationPeer.cs
- LookupBindingPropertiesAttribute.cs
- RegistryPermission.cs
- precedingquery.cs
- RuntimeWrappedException.cs
- DotExpr.cs
- DataGridViewToolTip.cs
- HtmlDocument.cs
- QilIterator.cs
- StyleXamlParser.cs
- WCFModelStrings.Designer.cs
- ComponentResourceKeyConverter.cs
- Semaphore.cs
- WorkflowFileItem.cs
- CodeGeneratorOptions.cs
- ToolStripItemGlyph.cs
- UnsafeNativeMethods.cs
- CqlParserHelpers.cs
- PeerNameRecordCollection.cs
- SelectionHighlightInfo.cs
- DecimalAnimationUsingKeyFrames.cs
- FontCollection.cs
- TimeSpanMinutesConverter.cs
- PointAnimationClockResource.cs
- DataGridViewEditingControlShowingEventArgs.cs
- XmlChildNodes.cs
- LinqTreeNodeEvaluator.cs
- WebPartEditorCancelVerb.cs
- SystemResourceHost.cs
- ConnectionsZoneDesigner.cs
- NTAccount.cs
- FontDialog.cs
- CodeCommentStatement.cs
- RowType.cs
- Parameter.cs
- FormView.cs
- CellParaClient.cs
- SendingRequestEventArgs.cs
- FacetDescription.cs
- EditingMode.cs
- ObjectViewListener.cs
- CompositeCollectionView.cs
- LightweightCodeGenerator.cs
- CursorConverter.cs
- IisTraceWebEventProvider.cs
- HtmlInputRadioButton.cs
- Clipboard.cs
- InstanceDataCollection.cs
- Adorner.cs
- UInt16Storage.cs
- ScriptManagerProxy.cs
- SocketPermission.cs
- UIntPtr.cs
- TreeViewImageKeyConverter.cs
- StrongName.cs
- DataSourceDescriptorCollection.cs
- DataServiceException.cs
- RelationshipNavigation.cs
- TransactionInformation.cs
- WindowsGraphics2.cs
- FaultCallbackWrapper.cs
- SchemaCollectionCompiler.cs
- WebPartEditVerb.cs
- BitVector32.cs
- TypeDescriptionProviderAttribute.cs
- PenThreadPool.cs
- HttpProtocolReflector.cs
- RuntimeEnvironment.cs
- DbgUtil.cs
- ByteStreamGeometryContext.cs
- EncodingTable.cs
- RepeatBehaviorConverter.cs