Ejemplo n.º 1
0
 protected override void Load(ContainerBuilder builder)
 {
     EditorModel editorModel = new EditorModel();
     builder.RegisterInstance(editorModel).ExternallyOwned();
     builder.RegisterType<EditorMenuModel>().InstancePerLifetimeScope();
     base.Load(builder);
 }
Ejemplo n.º 2
0
 public static EditorModel CreateNewModel()
 {
     EditorModel model = new EditorModel
         {
             Filename = "Project.xml",
             EquipmentHierarchy = new Hierarchy(),
             Project = ProjectMaster.NewProject()
         };
     return model;
 }