예제 #1
0
        public C_CasNumberPresenter(IUnityContainer container, IC_CasNumberView view)
        {
            View = view;
            this.container = container;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<C_CasNumberModel>();

            //Event Delegate
            View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch);
            View.New += new EventHandler<EventArgs>(this.OnNew);
            View.LoadData += new EventHandler<DataEventArgs<C_CasNumber>>(this.OnLoadData);
            View.Save += new EventHandler<EventArgs>(this.OnSave);
            View.Delete += new EventHandler<EventArgs>(this.OnDelete);

            View.Model.EntityList = service.GetC_CasNumber(new C_CasNumber());
            View.Model.Record = new C_CasNumber();

            View.TabRules.IsEnabled = false;

        }