Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ForEachDesigner.xaml.cs
- SimpleTypeResolver.cs
- ExecutedRoutedEventArgs.cs
- ActionFrame.cs
- IListConverters.cs
- EmptyQuery.cs
- DataServiceConfiguration.cs
- TraceRecords.cs
- StringValidator.cs
- PackageStore.cs
- BitmapSource.cs
- BitVector32.cs
- FieldDescriptor.cs
- ResXDataNode.cs
- UriWriter.cs
- PersianCalendar.cs
- mediaeventshelper.cs
- OleDbReferenceCollection.cs
- VisualBrush.cs
- CngProvider.cs
- FontStyles.cs
- KeyGestureConverter.cs
- Speller.cs
- AppDomain.cs
- ControlHelper.cs
- SyndicationSerializer.cs
- TextEditorLists.cs
- ConfigurationLocation.cs
- EventTrigger.cs
- SystemIPGlobalProperties.cs
- SetStoryboardSpeedRatio.cs
- ElementNotAvailableException.cs
- MenuItem.cs
- GeometryCollection.cs
- CompilerState.cs
- SecurityTokenProvider.cs
- _ConnectionGroup.cs
- Icon.cs
- BitConverter.cs
- FormsAuthentication.cs
- BaseDataBoundControl.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- SafeRegistryKey.cs
- MatrixStack.cs
- PersonalizableTypeEntry.cs
- IndexedGlyphRun.cs
- XmlSchemaComplexContentRestriction.cs
- _TLSstream.cs
- ImageInfo.cs
- NullableConverter.cs
- CopyNodeSetAction.cs
- TextTreeTextNode.cs
- PasswordPropertyTextAttribute.cs
- MetabaseSettingsIis7.cs
- RadioButton.cs
- DataGrid.cs
- HeaderUtility.cs
- XPathQilFactory.cs
- TemplateControlBuildProvider.cs
- ConfigurationManagerInternal.cs
- RequestDescription.cs
- ProfileManager.cs
- WebPartMenuStyle.cs
- _RequestLifetimeSetter.cs
- GroupPartitionExpr.cs
- StringComparer.cs
- LogRecordSequence.cs
- WindowsScrollBar.cs
- XamlPointCollectionSerializer.cs
- SqlDataSourceCustomCommandEditor.cs
- WebServiceClientProxyGenerator.cs
- RowToFieldTransformer.cs
- PolyQuadraticBezierSegment.cs
- BinaryWriter.cs
- LayoutTableCell.cs
- ParseHttpDate.cs
- SecureStringHasher.cs
- UnicastIPAddressInformationCollection.cs
- FunctionQuery.cs
- TimeoutValidationAttribute.cs
- NativeMethods.cs
- PrintPageEvent.cs
- TemplateNameScope.cs
- ToolStripItemRenderEventArgs.cs
- ControlUtil.cs
- ListViewInsertedEventArgs.cs
- WmlControlAdapter.cs
- XamlReaderHelper.cs
- ValueConversionAttribute.cs
- SqlConnectionPoolProviderInfo.cs
- CustomCredentialPolicy.cs
- EntityConnection.cs
- MemberHolder.cs
- PointAnimationClockResource.cs
- ColumnMapTranslator.cs
- DataGridViewCellValidatingEventArgs.cs
- InitializationEventAttribute.cs
- CacheDependency.cs
- DelegateArgument.cs
- MemoryPressure.cs