//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(); }
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; }