bool LoadGrandMutusDocument(XElement root, string fileName) { // rootからMutusDocumentというメソッドはないんだっけ? MutusDocument doc = new MutusDocument(); doc.LoadGrandMutusDocument(root, fileName); // 0.6.4.2以降! NowLoading = true; try { foreach (var q in doc.Questions) { IntroQuestion question = (IntroQuestion)q; var sweet_question = new SweetQuestion(question.Song); sweet_question.PlayPos = question.PlayPos; // intro_question側で未実装. //sweet_question.StopPos = question.StopPos; sweet_question.Category = question.Category; sweet_question.No = question.No; this.AddQuestion(sweet_question); } } finally { NowLoading = false; } return(true); }
bool LoadGrandMutusDocument(XElement root, string fileName) { // rootからMutusDocumentというメソッドはないんだっけ? MutusDocument doc = new MutusDocument(); doc.LoadGrandMutusDocument(root, fileName); // 0.6.4.2以降! NowLoading = true; try { foreach (var q in doc.Questions) { IntroQuestion question = (IntroQuestion)q; var sweet_question = new SweetQuestion(question.Song); sweet_question.PlayPos = question.PlayPos; // intro_question側で未実装. //sweet_question.StopPos = question.StopPos; sweet_question.Category = question.Category; sweet_question.No = question.No; this.AddQuestion(sweet_question); } } finally { NowLoading = false; } return true; }