/// <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);
        }
Exemple #3
0
 /// <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));
 }
Exemple #4
0
 /// <summary>
 /// See <see cref="IComposableWorkspace{TSmartPart, TSmartPartInfo}.ConvertFrom"/> for more information.
 /// </summary>
 XtraTabSmartPartInfo IComposableWorkspace <Control, XtraTabSmartPartInfo> .ConvertFrom(ISmartPartInfo source)
 {
     return(SmartPartInfo.ConvertTo <XtraTabSmartPartInfo>(source));
 }
Exemple #5
0
 /// <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));
 }
Exemple #6
0
 public TabSmartPartInfo ConvertFrom(ISmartPartInfo source)
 {
     return(SmartPartInfo.ConvertTo <TabSmartPartInfo>(source));
 }
 public GridSmartPartInfo ConvertFrom(ISmartPartInfo source)
 {
     return(SmartPartInfo.ConvertTo <GridSmartPartInfo>(source));
 }