You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

1. Add a new folder to the project named "Models"

2. Create a new class named "VolumeModel"

3. Add the following contents to this class:


4. Register the model in the application plugin class by adding the following code to DemoAppApplicationPlugin:

        public override IEnumerable<ModelInfo> GetModelInfos()
        {
            yield return new ModelInfo
                {
                    Name = "Volume Model",
                    Category = "DemoApp models",
                    CreateModel = (o) => new VolumeModel()
                };
        }
  • No labels