public DocumentConceptPresenter(IUnityContainer container, IDocumentConceptView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<DocumentConceptModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<DocumentConcept>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.Model.DocumentClassList = service.GetDocumentClass(new DocumentClass()); View.Model.EntityList = service.GetDocumentConcept(new DocumentConcept()) .Where(f => f.Name != "Default").ToList(); View.Model.Record = null; }