Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TextTreeInsertUndoUnit.cs
- DocumentXmlWriter.cs
- DataBinder.cs
- Manipulation.cs
- CodeCastExpression.cs
- Graphics.cs
- SQLBoolean.cs
- StrongNameIdentityPermission.cs
- RowTypePropertyElement.cs
- CategoryAttribute.cs
- IndentedWriter.cs
- IntAverageAggregationOperator.cs
- ObjectStorage.cs
- XmlChoiceIdentifierAttribute.cs
- HtmlTable.cs
- MouseGesture.cs
- UrlAuthFailedErrorFormatter.cs
- DataSourceGeneratorException.cs
- SystemBrushes.cs
- DynamicResourceExtensionConverter.cs
- SpecialNameAttribute.cs
- ColumnTypeConverter.cs
- BitHelper.cs
- SqlUdtInfo.cs
- DataGridViewHeaderCell.cs
- MailAddress.cs
- WindowPattern.cs
- DesignDataSource.cs
- IncomingWebRequestContext.cs
- OleDbErrorCollection.cs
- CommandCollectionEditor.cs
- MULTI_QI.cs
- BuildManagerHost.cs
- XmlSchema.cs
- HttpListenerResponse.cs
- Thread.cs
- ApplicationSecurityManager.cs
- Point4D.cs
- storepermission.cs
- ClipboardProcessor.cs
- UrlAuthorizationModule.cs
- IBuiltInEvidence.cs
- QilStrConcatenator.cs
- ServiceContractDetailViewControl.cs
- CodeMemberMethod.cs
- HtmlEncodedRawTextWriter.cs
- SwitchAttribute.cs
- EntityObject.cs
- Itemizer.cs
- PersonalizationState.cs
- EnvelopedPkcs7.cs
- TextPattern.cs
- EventsTab.cs
- StringUtil.cs
- TracingConnectionListener.cs
- CounterCreationData.cs
- ObjectKeyFrameCollection.cs
- CombinedGeometry.cs
- HttpWrapper.cs
- ActivationArguments.cs
- UnsafeCollabNativeMethods.cs
- WebBrowserContainer.cs
- RuntimeHandles.cs
- AssociationEndMember.cs
- DragDrop.cs
- AddressUtility.cs
- PresentationTraceSources.cs
- FastEncoder.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BamlBinaryReader.cs
- Win32KeyboardDevice.cs
- CachedTypeface.cs
- QuarticEase.cs
- EntityDataSourceView.cs
- GregorianCalendar.cs
- SignedXml.cs
- TreeNodeBinding.cs
- TemplateInstanceAttribute.cs
- MSAANativeProvider.cs
- SortDescription.cs
- SiteMembershipCondition.cs
- _UriSyntax.cs
- XmlSchemaObjectCollection.cs
- CallbackHandler.cs
- DetailsViewRow.cs
- DrawingGroup.cs
- categoryentry.cs
- UpdateException.cs
- Logging.cs
- DataObjectMethodAttribute.cs
- ImageBrush.cs
- FlowPanelDesigner.cs
- Util.cs
- FixedLineResult.cs
- ExceptionUtil.cs
- RowSpanVector.cs
- AppDomainAttributes.cs
- ConnectionStringsExpressionBuilder.cs
- SequentialOutput.cs
- Span.cs