コード例 #1
0
 public void LoadProperties()
 {
     Properties.Clear();
     try
     {
         CMISTypeNode tn   = (TVIViewModel.deSerialize(settings.SerializedTypePath.Last(), typeof(CMISTypeNode)) as CMISTypeNode);
         CMISType     type = vm.CMISClient.GetTypeFromId(tn.Id);
         foreach (CMISProperty pd in vm.CMISClient.GetPropertyDefinitions(type))
         {
             if (pd.Id != "cmis:name")
             {
                 Properties.Add(pd);
             }
         }
         settings.SelectedType = type.Id;
         RaisePropertyChanged(PropertiesLoadedd_name);
         LoadedType = type;
     }
     catch (Exception e) { throw new Exception(
                                     "Could not load " + SelectedTypePath +
                                     ". Reason:\n" + e.Message); }
 }
コード例 #2
0
        }                         // for xml serializer

        public CMISTypeNode(CMISTypeNode parent, CMISType iType)
        {
            CMISType = iType;
            TypePath = parent == null ? iType.DisplayName : parent.TypePath + GetPathConcatenationString() + iType.DisplayName;
        }