Example #1
0
        public ContactController()
        {
            var context = new AddressBookContext();

            _contactLogic     = new ContactLogic(new ContactRepository(context));
            _contactTypeLogic = new ContactTypeLogic(new ContactTypeRepository(context));
            _userLogic        = new UserLogic(new UserRepository(context));
        }
Example #2
0
        public ContactController()
        {
            var context = new AddressBookContext();

            _contactLogic = new ContactLogic(new ContactRepository(context));
            _contactTypeLogic = new ContactTypeLogic(new ContactTypeRepository(context));
            _userLogic = new UserLogic(new UserRepository(context));
        }
Example #3
0
        public ContactViewModel(IActionHelper actionHelper, IContactLogic contactLogic, ISettingLogic settingLogic, IMvxNavigationService navigationService)
        {
            _contactLogic      = contactLogic;
            _navigationService = navigationService;
            _settingLogic      = settingLogic;
            _actionHelper      = actionHelper;

            SaveContactCommand = new MvxAsyncCommand(() => _actionHelper.DoAction(SaveContact));
            NumberPrefixes     = NumberPrefixProvider.GetNumberPrefixes();
        }
Example #4
0
 public ContactsController(IContactLogic contactLogic)
 {
     this._contactLogic = contactLogic;
 }
Example #5
0
 public ContactsController()
 {
     this._contactLogic = new ContactLogic();
 }
Example #6
0
 public ContactController(IContactLogic contactLogic)
 {
     _contactLogic = contactLogic;
 }
Example #7
0
 /// <summary>
 /// constructor for ContactController
 /// </summary>
 /// <param name="logic">business logic</param>
 public ContactController(IContactLogic logic)
 {
     _logic = logic;
 }
Example #8
0
 public FormContacts(IContactLogic logic)
 {
     InitializeComponent();
     this.logic = logic;
 }
Example #9
0
        public HomeController()
        {
            var context = new AddressBookContext();

            _contactLogic = new ContactLogic(new ContactRepository(context));
        }
Example #10
0
        public HomeController()
        {
            var context = new AddressBookContext();

            _contactLogic = new ContactLogic(new ContactRepository(context));
        }