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
- UIPropertyMetadata.cs
- Unit.cs
- XslTransform.cs
- NamedServiceModelExtensionCollectionElement.cs
- DnsEndpointIdentity.cs
- recordstatescratchpad.cs
- SqlDataRecord.cs
- DependencyObjectCodeDomSerializer.cs
- ImageKeyConverter.cs
- BufferedWebEventProvider.cs
- SectionInput.cs
- Page.cs
- RegionIterator.cs
- ScrollPattern.cs
- HttpHandlerAction.cs
- StrokeDescriptor.cs
- SqlNode.cs
- BinaryCommonClasses.cs
- ChtmlCalendarAdapter.cs
- TextDocumentView.cs
- BamlCollectionHolder.cs
- ConditionValidator.cs
- ScrollPattern.cs
- IpcClientChannel.cs
- SendMailErrorEventArgs.cs
- UnitySerializationHolder.cs
- ImageList.cs
- SecurityKeyUsage.cs
- BindingList.cs
- TypeConverterMarkupExtension.cs
- WebPartVerbCollection.cs
- IssuanceLicense.cs
- DataSourceExpressionCollection.cs
- CodeDelegateInvokeExpression.cs
- XmlQueryContext.cs
- XamlStyleSerializer.cs
- _TimerThread.cs
- Relationship.cs
- RegionInfo.cs
- DbQueryCommandTree.cs
- CodeChecksumPragma.cs
- CompositeDataBoundControl.cs
- CommandSet.cs
- SecurityKeyUsage.cs
- AutoGeneratedField.cs
- HtmlInputButton.cs
- MatrixStack.cs
- Brush.cs
- PropertyDescriptorCollection.cs
- ColorAnimation.cs
- ScrollContentPresenter.cs
- XmlValueConverter.cs
- ExceptionUtil.cs
- DatagridviewDisplayedBandsData.cs
- ServiceObjectContainer.cs
- ToolStripButton.cs
- HostedElements.cs
- PrintPreviewGraphics.cs
- TraceHandlerErrorFormatter.cs
- MachineKeySection.cs
- Zone.cs
- PointHitTestParameters.cs
- XmlValueConverter.cs
- WindowsSecurityTokenAuthenticator.cs
- _LocalDataStore.cs
- DataGridState.cs
- BitStack.cs
- WebControlAdapter.cs
- CodeGenerator.cs
- CompositeScriptReference.cs
- QueryCacheEntry.cs
- NotifyInputEventArgs.cs
- TypeLoadException.cs
- MonikerUtility.cs
- StorageComplexTypeMapping.cs
- HtmlTableCell.cs
- AssemblyInfo.cs
- AxImporter.cs
- wmiprovider.cs
- StorageAssociationSetMapping.cs
- LinqToSqlWrapper.cs
- SizeChangedInfo.cs
- coordinatorfactory.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- XPathDocumentBuilder.cs
- BigInt.cs
- DeferredSelectedIndexReference.cs
- ACE.cs
- DragDeltaEventArgs.cs
- KoreanCalendar.cs
- CompositeTypefaceMetrics.cs
- DocumentPageTextView.cs
- CryptoKeySecurity.cs
- AttributeCollection.cs
- CatchDesigner.xaml.cs
- KeyTime.cs
- StartUpEventArgs.cs
- GeneratedContractType.cs
- MessageContractExporter.cs