/// <summary>
        /// Creates a new instance of the store presenter
        /// </summary>
        /// <param name="view">View to bind to</param>
        public StorePresenter(IViewStore view)
        {
            // Bind to all view events
            _view = view;
            _view.Add += View_Add;
            _view.Get += View_Get;
            _view.GetAll += View_GetAll;
            _view.Remove += View_Remove;
            _view.Edit += View_Edit;
            _view.Update += View_Update;

            // Create new repository
            var sessionFactManager = new SessionFactoryManager();
            SessionContext = new SessionContext(sessionFactManager);

            _storeRepository = new StoreRepository<Store>(SessionContext);
        }
        /// <summary>
        /// Create a new instance of the EmployeePresenter
        /// </summary>
        /// <param name="view">View to bind to</param>
        public EmployeePresenter(IViewEmployee view)
        {
            // Bind to all view events
            _view = view;
            _view.Add += View_Add;
            _view.Get += View_Get;
            _view.GetAll += View_GetAll;
            _view.Remove += View_Remove;
            _view.Edit += View_Edit;
            _view.Update += View_Update;

            // Configure a new repository
            var sessionFactManager = new SessionFactoryManager();
            SessionContext = new SessionContext(sessionFactManager);

            _employeeRepository = new EmployeeRepository<Employee>(SessionContext);
        }
        /// <summary>
        /// Creates a new instance of SyncManager
        /// </summary>
        public SyncManager()
        {
            _factoryManager = new SessionFactoryManager();

            CreateContexts();
        }