public CustomProcessRoutePresenter(IUnityContainer container, ICustomProcessRouteView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<CustomProcessRouteModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<CustomProcessRoute>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); View.Model.EntityList = service.GetCustomProcessRoute(new CustomProcessRoute()); View.Model.Record = null; IList<CustomProcess> list = service.GetCustomProcess(new CustomProcess()); View.Model.ProcessFromList = list; View.Model.ProcessToList = list; }