コード例 #1
0
        //private void S_content_LoadMultiChapterCompleted(object sender, contentProvider.LoadChapterCompletedEventArgs e)
        //{
        //    browserPath.Text = e.path;
        //}

        private async void testWriteData()
        {
            content c = new content();
            await c.loadData();

            c.m_words.Add(new word("心配(TÂM PHỐI)"));
            await c.saveData();
        }
コード例 #2
0
ファイル: content.cs プロジェクト: khiemnv/kanjiLearning
        contentProvider()
        {
            m_content      = new content();
            m_chapters     = new Dictionary <string, chapter>();
            m_lessons      = new Dictionary <string, lessons>();
            m_db           = new myDb();
            m_mainPgCfg    = myMainPgCfg.getInstance();
            m_chapterPgCfg = myChapterPgCfg.getInstance();
            m_lessonPgCfg  = myLessonPgCfg.getInstance();

            m_content.SaveCompleted += M_content_SaveCompleted;
            m_content.LoadCompleted += M_content_LoadCompleted;
        }