public AccountComposer(IAccountView view) { _history = new HistoryList(); _accounts = new SortedDictionary<string, Decimal>(); _actions = new Stack<string>(); _view = view; }
public AccountLoginController() { al = new Account_Login(); al.DataContext = this; ic = this; ic.InstantiateMasterController(); ic.Start(); }
public void ShowAccount(Account account) { if (accountView == null) accountView = IoCContainer.Instance.Resolve<IAccountView>(); accountView.Presenter.Account = account; accountView.Show(); }
public AccountPresenter(IUnityContainer container, IAccountView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve<AccountModel>(); //Event Delegate View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch); View.New += new EventHandler<EventArgs>(this.OnNew); View.LoadData += new EventHandler<DataEventArgs<Account>>(this.OnLoadData); View.Save += new EventHandler<EventArgs>(this.OnSave); View.Delete += new EventHandler<EventArgs>(this.OnDelete); //View.SaveAccountAddress += new EventHandler<EventArgs>(this.OnSaveAccountAddress); //View.DeleteAccountAddress += new EventHandler<EventArgs>(this.OnDeleteAccountAddress); //View.LoadDataAccountAddress += new EventHandler<DataEventArgs<AccountAddress>>(this.OnLoadDataAccountAddress); //View.NewAccountAddress += new EventHandler<EventArgs>(this.OnNewAccountAddress); View.Model.EntityList = service.GetAccount(new Account {Company = App.curCompany}); View.Model.Record = null; View.Model.RecordAddress = new AccountAddress(); }
public AccountPresenter(IUnityContainer container, IAccountView view) { View = view; this.container = container; this.service = new WMSServiceClient(); View.Model = this.container.Resolve <AccountModel>(); //Event Delegate View.LoadSearch += new EventHandler <DataEventArgs <string> >(this.OnLoadSearch); View.New += new EventHandler <EventArgs>(this.OnNew); View.LoadData += new EventHandler <DataEventArgs <Account> >(this.OnLoadData); View.Save += new EventHandler <EventArgs>(this.OnSave); View.Delete += new EventHandler <EventArgs>(this.OnDelete); //View.SaveAccountAddress += new EventHandler<EventArgs>(this.OnSaveAccountAddress); //View.DeleteAccountAddress += new EventHandler<EventArgs>(this.OnDeleteAccountAddress); //View.LoadDataAccountAddress += new EventHandler<DataEventArgs<AccountAddress>>(this.OnLoadDataAccountAddress); //View.NewAccountAddress += new EventHandler<EventArgs>(this.OnNewAccountAddress); View.Model.EntityList = service.GetAccount(new Account { Company = App.curCompany }); View.Model.Record = null; View.Model.RecordAddress = new AccountAddress(); }
public AccountPresenter(IAccountView view, AccountModel model) { _view = view; _model = model; }
public AccountPresenter(IAccountView view) : this(view, new AccountModel()) { }
public AccountPresenter(IAccountView view) { this.view = view; data = new DataManagement(); }
public AccountPresenter(IAccountView view) { this.view = view; }
public AccountPresenter(IAccountView view) { _view = view; }
public void SetView(IAccountView view) { m_view = view; }