Exemplo n.º 1
0
 /// <summary>
 /// By default uses the conversion implemented in <see cref="WPFSmartPartInfo.ConvertTo{TSmartPartInfo}"/>.
 /// A derived class can implement a different conversion scheme.
 /// </summary>
 protected virtual TSmartPartInfo ConvertFrom(ISmartPartInfo source)
 {
     return(WPFSmartPartInfo.ConvertTo <TSmartPartInfo>(source));
 }
 /// <summary>
 /// Converts a smart part information to a compatible one for the workspace.
 /// </summary>
 protected virtual ZoneSmartPartInfo OnConvertFrom(ISmartPartInfo source)
 {
     return(WPFSmartPartInfo.ConvertTo <ZoneSmartPartInfo>(source));
 }
 /// <summary>
 /// See <see cref="IComposableWorkspace{TSmartPart, TSmartPartInfo}.ConvertFrom"/> for more information.
 /// </summary>
 TabSmartPartInfo IComposableWorkspace <Control, TabSmartPartInfo> .ConvertFrom(ISmartPartInfo source)
 {
     return(WPFSmartPartInfo.ConvertTo <TabSmartPartInfo>(source));
 }