コード例 #1
0
ファイル: Program.cs プロジェクト: Jdaco/AccountTotals
 public AccountComposer(IAccountView view)
 {
     _history = new HistoryList();
     _accounts = new SortedDictionary<string, Decimal>();
     _actions = new Stack<string>();
     _view = view;
 }
コード例 #2
0
 public AccountLoginController()
 {
     al             = new Account_Login();
     al.DataContext = this;
     ic             = this;
     ic.InstantiateMasterController();
     ic.Start();
 }
コード例 #3
0
ファイル: AccountsPresenter.cs プロジェクト: qwer/budget
        public void ShowAccount(Account account)
        {
            if (accountView == null)
                accountView = IoCContainer.Instance.Resolve<IAccountView>();

            accountView.Presenter.Account = account;
            accountView.Show();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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();
        }
コード例 #6
0
ファイル: AccountPresenter.cs プロジェクト: jceation/ushop
 public AccountPresenter(IAccountView view, AccountModel model)
 {
     _view  = view;
     _model = model;
 }
コード例 #7
0
ファイル: AccountPresenter.cs プロジェクト: jceation/ushop
 public AccountPresenter(IAccountView view)
     : this(view, new AccountModel())
 {
 }
コード例 #8
0
 public AccountPresenter(IAccountView view)
 {
     this.view = view;
     data      = new DataManagement();
 }
コード例 #9
0
 public AccountPresenter(IAccountView view)
 {
     this.view = view;
 }
コード例 #10
0
 public AccountPresenter(IAccountView view)
 {
     _view = view;
 }
コード例 #11
0
 public void SetView(IAccountView view)
 {
     m_view = view;
 }