示例#1
0
 public JournalManager(IUserInterfaceManager parentUI, string connectionString)
 {
     _parentUI          = parentUI;
     _journalRepository = new JournalRepository(connectionString);
     _connectionString  = connectionString;
     journalRepo        = new JournalRepository(_connectionString);
 }
        public JournalDetailManager(IUserInterfaceManager parentUI, string connectionString, int journalId)
        {
            _parentUI = parentUI;

            //new variable that holds data being pulled in from SQL database and passed as an instance of a Journal Repository
            _journalRepository = new JournalRepository(connectionString);

            _journalId = journalId;
        }