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
- ThreadAttributes.cs
- CheckBoxPopupAdapter.cs
- Button.cs
- DataServiceProcessingPipelineEventArgs.cs
- MediaPlayerState.cs
- Pkcs7Recipient.cs
- EnumerableRowCollection.cs
- IndicFontClient.cs
- SectionRecord.cs
- BasicHttpBindingCollectionElement.cs
- EntityProviderFactory.cs
- XmlChildNodes.cs
- Oid.cs
- MouseGestureValueSerializer.cs
- GridSplitter.cs
- InputScopeNameConverter.cs
- ChildChangedEventArgs.cs
- ActiveXContainer.cs
- ToolStripPanel.cs
- ProfileService.cs
- OdbcConnectionHandle.cs
- ExecutionProperties.cs
- PageCatalogPart.cs
- TypeElementCollection.cs
- SqlUtils.cs
- StrongNameKeyPair.cs
- HashCodeCombiner.cs
- BitmapEffectvisualstate.cs
- StorageEndPropertyMapping.cs
- StreamReader.cs
- StorageSetMapping.cs
- TopClause.cs
- QilStrConcatenator.cs
- smtpconnection.cs
- ContainerUtilities.cs
- WinInet.cs
- WindowsListViewScroll.cs
- DynamicResourceExtension.cs
- SplineQuaternionKeyFrame.cs
- MultitargetUtil.cs
- SQlBooleanStorage.cs
- SqlUtils.cs
- StrokeCollection.cs
- ECDsaCng.cs
- Renderer.cs
- Control.cs
- UpdateCompiler.cs
- DbConnectionPool.cs
- FileDetails.cs
- GridViewRowEventArgs.cs
- KnownTypesProvider.cs
- ReflectionPermission.cs
- XamlReader.cs
- TerminatorSinks.cs
- ModuleElement.cs
- XsltOutput.cs
- DataGridViewRowsAddedEventArgs.cs
- ListChangedEventArgs.cs
- DeviceContexts.cs
- ListView.cs
- CompensatableTransactionScopeActivity.cs
- FacetChecker.cs
- PriorityItem.cs
- GenericUI.cs
- ApplyTemplatesAction.cs
- TemplateBuilder.cs
- DataControlFieldCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- LogAppendAsyncResult.cs
- BufferBuilder.cs
- CompositeScriptReference.cs
- Compilation.cs
- GridSplitterAutomationPeer.cs
- GridViewRowCollection.cs
- TextReader.cs
- XsltException.cs
- EnumValAlphaComparer.cs
- OptimizerPatterns.cs
- TextDecorationLocationValidation.cs
- PropertyDescriptorComparer.cs
- MobileControlBuilder.cs
- SerializationStore.cs
- JpegBitmapEncoder.cs
- Properties.cs
- DispatcherProcessingDisabled.cs
- ObjectStateEntry.cs
- RectAnimationClockResource.cs
- WindowInteropHelper.cs
- ValueChangedEventManager.cs
- MenuItemCollection.cs
- SQLBinary.cs
- GlobalizationAssembly.cs
- EventHandlerList.cs
- TablePattern.cs
- QueryCacheManager.cs
- TreeWalker.cs
- SchemaTableColumn.cs
- SmtpClient.cs
- ListView.cs
- InlineObject.cs