Exemple #1
0
        private void MakeModel()
        {
            UpdateTitle();

            // Create new model with recursion prevention
            var model = new TypeInterfaceModel(myTypeElementEnvoy, myInstanceOnly)
            {
                RecursionPrevention = RecursionPreventionStyle.StopOnOccurence
            };

            myModel = model;
            // Use our comparer, which sorts by member kind first
            myModel.Comparer = DelegatingComparer <TreeModelNode, object> .Create(source => source.DataValue,
                                                                                  new TypeInterfaceModelComparer());

            // Descriptor is finished configuring itself, so request updating visual representation, i.e. tree view
            RequestUpdate(UpdateKind.Structure, true);
        }
    private void MakeModel()
    {
      UpdateTitle();

      // Create new model with recursion prevention
      var model = new TypeInterfaceModel(myTypeElementEnvoy, myInstanceOnly)
                    {
                      RecursionPrevention = RecursionPreventionStyle.StopOnOccurence
                    };
      myModel = model;
      // Use our comparer, which sorts by member kind first
      myModel.Comparer = DelegatingComparer<TreeModelNode, object>.Create(source => source.DataValue,
                                                                          new TypeInterfaceModelComparer());

      // Descriptor is finished configuring itself, so request updating visual representation, i.e. tree view
      RequestUpdate(UpdateKind.Structure, true);
    }