Esempio n. 1
0
 /// <summary>
 /// the name of the file in package
 /// "/" + pluginAssembleName + "/" + ILayoutContentViewModel.PackagePartName + ".xml";
 /// should not contains changable part, because it is the url of the packagepart, if not we will get a lot dead packagepart in the package when we change the title and save the package part;
 /// </summary>
 static public string PackagePartName(ILayoutContentViewModel contentViewModel)
 {
     return(contentViewModel.GetType().FullName + "-_-" + PackagePartID(contentViewModel));//this.GetType().FullName + "-_-" + Title + "-_-" + PackagePartID;
 }
Esempio n. 2
0
        /// <summary>
        /// assembly qualified type name
        /// </summary>
        static public string PackagePartType(ILayoutContentViewModel contentViewModel)
        {
            var type = contentViewModel.GetType();

            return(type.FullName + "," + type.Assembly.GetName().Name);
        }