示例#1
0
 public SearchBLL(Model.ISearchRepository repository)
 {
     if (repository == null)
     {
         throw new ArgumentNullException("Null SearchRepository instance");
     }
     _repository = repository;
 }
        ////  The container for the custom content
        //private Popup settingsPopup;
        ////  desired width for the settingsUI. UI guidelines specify this
        ////  shuld be 346 or 646 depending on needs
        //private double settingsWidth = 646;
        ////  used to determine the correct height to ensure our custon UI fills the screen
        //private Rect windowBounds;


        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;

            //  Set up the datastore via the Repository for the moment.
            //  Here we would ultimately set up the 
            //  DI Container so that we can inject the instances.
            Model.IRepository Repository = new Model.StudentRepository();
            searchRepository = new Model.SearchRepository();
        }
        ////  The container for the custom content
        //private Popup settingsPopup;
        ////  desired width for the settingsUI. UI guidelines specify this
        ////  shuld be 346 or 646 depending on needs
        //private double settingsWidth = 646;
        ////  used to determine the correct height to ensure our custon UI fills the screen
        //private Rect windowBounds;


        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;

            //  Set up the datastore via the Repository for the moment.
            //  Here we would ultimately set up the
            //  DI Container so that we can inject the instances.
            Model.IRepository Repository = new Model.StudentRepository();
            searchRepository = new Model.SearchRepository();

            CheckFolders();
        }
 public SearchBLL(Model.ISearchRepository repository)
 {   
     if (repository == null)
         throw new ArgumentNullException("Null SearchRepository instance");
     _repository = repository;
 }