/// <summary> /// Initializes the projection. /// </summary> /// <param name="type">The type of entity being viewed.</param> /// <param name="form">The form used to display entity data.</param> public void Initialize(Type type, EntityForm form) { Command = new ViewCommandInfo(type.Name); controller = ViewController.New(this); Form = form; if (Form != null) { Form.EntityCommand += new EntityFormEventHandler(Form_EntityCommand); } }
/// <summary> /// Initializes the projection. /// </summary> /// <param name="type">The type of entity being viewed.</param> public void Initialize(Type type) { Command = new ViewCommandInfo(type.Name); controller = ViewController.New(this); }