Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Publisher.cs
- XmlUnspecifiedAttribute.cs
- DateTimeParse.cs
- HMACMD5.cs
- RequestQueryProcessor.cs
- BamlLocalizationDictionary.cs
- DataServiceHostWrapper.cs
- ServiceDescriptions.cs
- CompensateDesigner.cs
- IDispatchConstantAttribute.cs
- NativeWindow.cs
- XPathNodeList.cs
- NotImplementedException.cs
- FormsAuthenticationTicket.cs
- GradientBrush.cs
- DataGridAutoFormatDialog.cs
- ContentOperations.cs
- TypeForwardedFromAttribute.cs
- XsltConvert.cs
- XmlLinkedNode.cs
- WebHttpBehavior.cs
- FixedDSBuilder.cs
- ArgumentNullException.cs
- _ListenerAsyncResult.cs
- SelectionRangeConverter.cs
- Root.cs
- SafeRightsManagementQueryHandle.cs
- FixedFlowMap.cs
- TimeSpanConverter.cs
- Cursors.cs
- WorkflowTimerService.cs
- DetailsViewRow.cs
- cookieexception.cs
- DictionaryCustomTypeDescriptor.cs
- FactoryId.cs
- ControlIdConverter.cs
- Identity.cs
- ModuleBuilder.cs
- _ChunkParse.cs
- Assign.cs
- TimeSpanParse.cs
- XmlSchemaProviderAttribute.cs
- ForEachAction.cs
- AnonymousIdentificationModule.cs
- TextBoxAutoCompleteSourceConverter.cs
- MenuItemBindingCollection.cs
- ChannelListenerBase.cs
- SqlDataRecord.cs
- PageAsyncTaskManager.cs
- XmlSchemaInclude.cs
- XPathEmptyIterator.cs
- WebPartConnectionCollection.cs
- DbXmlEnabledProviderManifest.cs
- ReadWriteObjectLock.cs
- HScrollProperties.cs
- SemanticValue.cs
- IsolationInterop.cs
- ViewCellSlot.cs
- CompositeKey.cs
- TableColumn.cs
- NetTcpSectionData.cs
- WsdlBuildProvider.cs
- PartialArray.cs
- ReliabilityContractAttribute.cs
- StopRoutingHandler.cs
- SqlProviderManifest.cs
- RawStylusSystemGestureInputReport.cs
- EDesignUtil.cs
- TaskbarItemInfo.cs
- ActiveXSerializer.cs
- ColorTransformHelper.cs
- SQLBinary.cs
- MetadataCollection.cs
- CodeConstructor.cs
- ProviderConnectionPoint.cs
- PublisherIdentityPermission.cs
- srgsitem.cs
- SystemEvents.cs
- PolicyLevel.cs
- DBNull.cs
- COM2TypeInfoProcessor.cs
- TemplateBindingExtension.cs
- PersonalizationDictionary.cs
- IOThreadTimer.cs
- ExpressionEditorAttribute.cs
- DocumentPageTextView.cs
- ControlBuilder.cs
- FormViewDeletedEventArgs.cs
- ErrorWebPart.cs
- VisualStateChangedEventArgs.cs
- ProtectedProviderSettings.cs
- ParameterCollection.cs
- contentDescriptor.cs
- VSDExceptions.cs
- InteropBitmapSource.cs
- ImpersonateTokenRef.cs
- XmlSchemaInfo.cs
- TreeViewHitTestInfo.cs
- EntityDataSourceSelectingEventArgs.cs
- _SslStream.cs