Beispiel #1
0
		void FinishInitialization ()
		{
			allList = new AllList (preferences);

			TaskListRepo = new RtmTaskListRepository (this);
			taskRepo = new RtmTaskRepository (this);
			noteRepo = new RtmNoteRepository (this);
			
			Factory = new TasqueObjectFactory (
				TaskListRepo, taskRepo, noteRepo);
			
			IsInitialized = true;
			if (Initialized != null)
				Initialized (null, null);
		}
Beispiel #2
0
        public void Initialize(IPreferences preferences)
        {
            if (preferences == null)
                throw new ArgumentNullException ("preferences");
            if (IsInitialized)
                return;

            // Establish connection to backend
            // Nothing to do for Dummy Backend

            // Setup repos
            noteRepo = new NoteRepository (this);
            taskListRepo = new TaskListRepository (this);
            taskRepo = new TaskRepository (this);

            // Setup TasqueObjectFactory
            Factory = new TasqueObjectFactory (
                taskListRepo, taskRepo, noteRepo);

            IsConfigured = true;
            IsInitialized = true;
            if (Initialized != null)
                Initialized (this, EventArgs.Empty);
        }