/// <summary> /// Converts a smart part information to a compatible one for the workspace. /// </summary> protected virtual UltraMdiTabSmartPartInfo OnConvertFrom(ISmartPartInfo source) { UltraMdiTabSmartPartInfo spi = SmartPartInfo.ConvertTo <UltraMdiTabSmartPartInfo>(source); if (spi is ImageSmartPartInfo && source is ImageSmartPartInfo) { ((ImageSmartPartInfo)spi).Image = ((ImageSmartPartInfo)source).Image; } return(spi); }
/// <summary> /// Converts a smart part information to a compatible one for the workspace. /// </summary> protected virtual XtraNavBarGroupSmartPartInfo OnConvertFrom(ISmartPartInfo source) { var spi = SmartPartInfo.ConvertTo <XtraNavBarGroupSmartPartInfo>(source); if (source is XtraImageSmartPartInfo) { var imageSmartPartInfo = (XtraImageSmartPartInfo)source; spi.SmallImage = imageSmartPartInfo.SmallImage; spi.LargeImage = imageSmartPartInfo.LargeImage; } return(spi); }
/// <summary> /// Converts a smart part information to a compatible one for the workspace. /// </summary> protected virtual ZoneSmartPartInfo OnConvertFrom(ISmartPartInfo source) { return(SmartPartInfo.ConvertTo <ZoneSmartPartInfo>(source)); }
/// <summary> /// See <see cref="IComposableWorkspace{TSmartPart, TSmartPartInfo}.ConvertFrom"/> for more information. /// </summary> XtraTabSmartPartInfo IComposableWorkspace <Control, XtraTabSmartPartInfo> .ConvertFrom(ISmartPartInfo source) { return(SmartPartInfo.ConvertTo <XtraTabSmartPartInfo>(source)); }
/// <summary> /// Converts a smart part information to a compatible one for the workspace. /// </summary> protected virtual XtraTabSmartPartInfo ConvertFrom(ISmartPartInfo source) { return(SmartPartInfo.ConvertTo <XtraTabSmartPartInfo>(source)); }
public TabSmartPartInfo ConvertFrom(ISmartPartInfo source) { return(SmartPartInfo.ConvertTo <TabSmartPartInfo>(source)); }
public GridSmartPartInfo ConvertFrom(ISmartPartInfo source) { return(SmartPartInfo.ConvertTo <GridSmartPartInfo>(source)); }