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
- IPEndPoint.cs
- ApplicationException.cs
- ScaleTransform3D.cs
- CodeMethodReturnStatement.cs
- DecoderReplacementFallback.cs
- BehaviorEditorPart.cs
- UniqueIdentifierService.cs
- RandomNumberGenerator.cs
- WSHttpSecurity.cs
- XmlElementAttributes.cs
- OracleBoolean.cs
- CommandTreeTypeHelper.cs
- DesignerDataSchemaClass.cs
- RijndaelManaged.cs
- AnimationException.cs
- ListParaClient.cs
- Floater.cs
- StandardCommands.cs
- MembershipValidatePasswordEventArgs.cs
- MenuItem.cs
- Image.cs
- DocumentViewerConstants.cs
- CompilationUnit.cs
- PrePostDescendentsWalker.cs
- PropertyStore.cs
- HttpListenerResponse.cs
- CharacterMetrics.cs
- OpacityConverter.cs
- FaultDesigner.cs
- AsyncResult.cs
- XmlLanguageConverter.cs
- XPathAncestorQuery.cs
- RectangleConverter.cs
- DesignerSerializationVisibilityAttribute.cs
- Positioning.cs
- MemberAssignmentAnalysis.cs
- UIElement.cs
- StructuralCache.cs
- webproxy.cs
- TdsParserHelperClasses.cs
- RevocationPoint.cs
- BindingMemberInfo.cs
- SoapDocumentMethodAttribute.cs
- DictionaryEntry.cs
- RelationshipManager.cs
- FileChangesMonitor.cs
- XmlSchemaObjectTable.cs
- CSharpCodeProvider.cs
- GlyphInfoList.cs
- PlainXmlWriter.cs
- rsa.cs
- ArgumentException.cs
- WpfGeneratedKnownTypes.cs
- ToolStripRenderEventArgs.cs
- SafeNativeHandle.cs
- ComponentDesigner.cs
- FixedSOMSemanticBox.cs
- PersonalizationDictionary.cs
- HTMLTagNameToTypeMapper.cs
- UIElement3D.cs
- AutomationPropertyInfo.cs
- LinkLabel.cs
- DataKey.cs
- ToolStripDropDownItemDesigner.cs
- DbSource.cs
- XmlSerializerVersionAttribute.cs
- HandlerMappingMemo.cs
- CompressEmulationStream.cs
- contentDescriptor.cs
- ListBox.cs
- TextTreeRootNode.cs
- VisualStates.cs
- HttpModuleActionCollection.cs
- Timeline.cs
- ButtonFieldBase.cs
- OutputScopeManager.cs
- ThreadAttributes.cs
- SystemWebExtensionsSectionGroup.cs
- CheckBox.cs
- SignatureDescription.cs
- CodeMethodReturnStatement.cs
- TdsParameterSetter.cs
- CellNormalizer.cs
- InfoCardClaimCollection.cs
- PersonalizationAdministration.cs
- ExpressionSelection.cs
- TypeProvider.cs
- ServicePoint.cs
- DecoderExceptionFallback.cs
- WebPartConnectVerb.cs
- TextOutput.cs
- PropertiesTab.cs
- InkCanvasFeedbackAdorner.cs
- HttpDictionary.cs
- TreeNodeCollection.cs
- ResolveMatchesApril2005.cs
- ErrorLog.cs
- WebContext.cs
- WriteTimeStream.cs
- PerformanceCounterLib.cs